Home
last modified time | relevance | path

Searched refs:empty_string (Results 1 – 1 of 1) sorted by relevance

/linux-5.19.10/lib/
Dtest_string.c118 const char *empty_string = ""; in strchr_selftest() local
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()
146 const char *empty_string = ""; in strnchr_selftest() local
163 result = strnchr(empty_string, 0, '\0'); 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()