Lines Matching refs:s1
32 stupid_strcasestr (const char *s1, const char *s2) in stupid_strcasestr() argument
34 ssize_t s1len = strlen (s1); in stupid_strcasestr()
44 if (tolower (s1[i + j]) != tolower (s2[j])) in stupid_strcasestr()
47 return (char *) s1 + i; 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()
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()
117 s1[len1 - len2 + i] = toupper (s2[i]); in do_test()
119 s1[len1] = '\0'; in do_test()
122 do_one_test (impl, s1, s2, fail ? NULL : s1 + len1 - len2); in do_test()
128 const char s1[] = "AOKB"; in check1() local
132 exp_result = stupid_strcasestr (s1, s2); in check1()
134 check_result (impl, s1, s2, exp_result); in check1()