Lines Matching refs:s1
31 stupid_strstr (const char *s1, const char *s2) in stupid_strstr() argument
33 ssize_t s1len = strlen (s1); in stupid_strstr()
43 if (s1[i + j] != s2[j]) in stupid_strstr()
46 return (char *) s1 + i; in stupid_strstr()
61 check_result (impl_t *impl, const char *s1, const char *s2, in check_result() argument
64 char *result = CALL (impl, s1, s2); in check_result()
78 do_one_test (impl_t *impl, const char *s1, const char *s2, char *exp_result) in do_one_test() argument
80 if (check_result (impl, s1, s2, exp_result) < 0) in do_one_test()
89 char *s1 = (char *) (buf1 + align1); in do_test() local
104 char *ss1 = s1; in do_test()
115 memset (s1, '0', len1); in do_test()
116 memcpy (s1 + len1 - len2, s2, len2); in do_test()
118 s1[len1] = '\0'; in do_test()
121 do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 - len2); in do_test()
128 const char s1[] = in check1() local
133 exp_result = stupid_strstr (s1, s2); in check1()
135 check_result (impl, s1, s2, exp_result); in check1()