Lines Matching refs:s
49 # define L(s) s argument
65 # define L(s) L ## s argument
78 simple_STRCHR (const CHAR *s, int c) in simple_STRCHR() argument
80 for (; *s != (CHAR) c; ++s) in simple_STRCHR()
81 if (*s == '\0') in simple_STRCHR()
82 return NULLRET ((CHAR *) s); in simple_STRCHR()
83 return (CHAR *) s; in simple_STRCHR()
87 stupid_STRCHR (const CHAR *s, int c) in stupid_STRCHR() argument
89 size_t n = STRLEN (s) + 1; in stupid_STRCHR()
92 if (*s++ == (CHAR) c) in stupid_STRCHR()
93 return (CHAR *) s - 1; in stupid_STRCHR()
94 return NULLRET ((CHAR *) s - 1); in stupid_STRCHR()
102 check_result (impl_t *impl, const CHAR *s, int c, const CHAR *exp_res) in check_result() argument
104 CHAR *res = CALL (impl, s, c); in check_result()
116 do_one_test (impl_t *impl, const CHAR *s, int c, const CHAR *exp_res) in do_one_test() argument
118 if (check_result (impl, s, c, exp_res) < 0) in do_one_test()
232 CHAR s[] __attribute__((aligned(16))) = L ("\xff"); in check1() local
234 CHAR *exp_result = stupid_STRCHR (s, c); in check1()
237 check_result (impl, s, c, exp_result); in check1()