Lines Matching refs:maxsize
30 * maxsize bytes large. It does not free the string pointed to by str, it
38 strnsubst(char **str, const char *match, const char *replstr, size_t maxsize)
46 * If maxsize is 0 then set it to to the length of s1, because we have
50 * sense to check if maxsize is <= strlen(s1), because in that case we
53 if (maxsize == 0) {
55 maxsize = strlen(s1) + 1;
57 s2 = calloc(maxsize, 1);
64 if (match == NULL || replstr == NULL || maxsize == strlen(s1)) {
65 (void)strlcpy(s2, s1, maxsize);
74 strlen(match) + 1) > maxsize) {
75 (void)strlcat(s2, s1, maxsize);