Lines Matching refs:s1
35 char *s1, *s2, *this; in strnsubst() local
38 s1 = *str; in strnsubst()
39 if (s1 == NULL) in strnsubst()
51 maxsize = strlen(s1) + 1; in strnsubst()
60 if (match == NULL || replstr == NULL || maxsize == strlen(s1)) { in strnsubst()
61 strlcpy(s2, s1, maxsize); in strnsubst()
66 this = strstr(s1, match); in strnsubst()
69 if ((strlen(s2) + strlen(s1) + strlen(replstr) - in strnsubst()
71 strlcat(s2, s1, maxsize); in strnsubst()
75 strncat(s2, s1, (uintptr_t)this - (uintptr_t)s1); in strnsubst()
77 s1 = this + strlen(match); in strnsubst()
79 strcat(s2, s1); in strnsubst()