Lines Matching refs:maxsize
24 * maxsize bytes large. It does not free the string pointed to by str, it
32 strnsubst(char **str, const char *match, const char *replstr, size_t maxsize)
40 * If maxsize is 0 then set it to to the length of s1, because we have
44 * sense to check if maxsize is <= strlen(s1), because in that case we
47 if (maxsize == 0) {
49 maxsize = strlen(s1) + 1;
51 s2 = calloc(maxsize, 1);
58 if (match == NULL || replstr == NULL || maxsize == strlen(s1)) {
59 strlcpy(s2, s1, maxsize);
68 strlen(match) + 1) > maxsize) {
69 strlcat(s2, s1, maxsize);