Lines Matching refs:s2
32 stupid_strcasestr (const char *s1, const char *s2) in stupid_strcasestr() argument
35 ssize_t s2len = strlen (s2); in stupid_strcasestr()
44 if (tolower (s1[i + j]) != tolower (s2[j])) in stupid_strcasestr()
62 check_result (impl_t *impl, const char *s1, const char *s2, in check_result() argument
65 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()
117 s1[len1 - len2 + i] = toupper (s2[i]); in do_test()
122 do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 - len2); in do_test()
129 const char s2[] = "OK"; in check1() local
132 exp_result = stupid_strcasestr (s1, s2); in check1()
134 check_result (impl, s1, s2, exp_result); in check1()