Lines Matching refs:s2
31 stupid_strstr (const char *s1, const char *s2) in stupid_strstr() argument
34 ssize_t s2len = strlen (s2); in stupid_strstr()
43 if (s1[i + j] != s2[j]) 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()
90 char *s2 = (char *) (buf2 + align2); in do_test() local
94 char *ss2 = s2; in do_test()
100 s2[len2] = '\0'; in do_test()
116 memcpy (s1 + len1 - len2, s2, len2); in do_test()
121 do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 - len2); in do_test()
130 const char s2[] = "_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD_EF_BF_BD"; in check1() local
133 exp_result = stupid_strstr (s1, s2); in check1()
135 check_result (impl, s1, s2, exp_result); in check1()