Lines Matching refs:s1
45 const char *s1, *s2; in strstr() local
49 s1 = as1; in strstr()
53 return ((char *)s1); in strstr()
56 while (*s1 != '\0') { in strstr()
57 if (c == *s1++) { in strstr()
58 tptr = s1; in strstr()
59 while ((c = *++s2) == *s1++ && c != '\0') in strstr()
63 s1 = tptr; in strstr()
84 const char *s1, *s2; in strnstr() local
89 s1 = as1; in strnstr()
93 return ((char *)s1); in strnstr()
96 while (*s1 != '\0' && n--) { in strnstr()
97 if (c == *s1++) { in strnstr()
99 tptr = s1; in strnstr()
100 while ((c = *++s2) == *s1++ && c != '\0' && k--) in strnstr()
104 s1 = tptr; in strnstr()