Lines Matching refs:result
119 char *result; in strchr_selftest() local
123 result = strchr(test_string, test_string[i]); in strchr_selftest()
124 if (result - test_string != i) in strchr_selftest()
128 result = strchr(empty_string, '\0'); in strchr_selftest()
129 if (result != empty_string) in strchr_selftest()
132 result = strchr(empty_string, 'a'); in strchr_selftest()
133 if (result) in strchr_selftest()
136 result = strchr(test_string, 'z'); in strchr_selftest()
137 if (result) in strchr_selftest()
147 char *result; in strnchr_selftest() local
152 result = strnchr(test_string, j, test_string[i]); in strnchr_selftest()
154 if (!result) in strnchr_selftest()
158 if (result - test_string != i) in strnchr_selftest()
163 result = strnchr(empty_string, 0, '\0'); in strnchr_selftest()
164 if (result) in strnchr_selftest()
167 result = strnchr(empty_string, 1, '\0'); in strnchr_selftest()
168 if (result != empty_string) in strnchr_selftest()
171 result = strnchr(empty_string, 1, 'a'); in strnchr_selftest()
172 if (result) in strnchr_selftest()
175 result = strnchr(NULL, 0, '\0'); in strnchr_selftest()
176 if (result) in strnchr_selftest()