Go to the source code of this file.
◆ __strchrnul()
char* __strchrnul |
( |
const char * |
s, |
|
|
int |
c |
|
) |
| |
Definition at line 13 of file strchrnul.c.
21 return (
char*)(uintptr_t)s +
strlen(s);
24 for(; (uintptr_t)s %
ALIGN; s++)
26 if(!*s || *(
const unsigned char*)s == c)
28 return (
char*)(uintptr_t)s;
32 k =
ONES * (
unsigned long)c;
40 for(s = (
const void*)w; *s && *(
const unsigned char*)s != c; s++)
47 return (
char*)(uintptr_t)s;
size_t strlen(const char *str)
Returns the length of the given null-terminated byte string.
References ALIGN, HASZERO, ONES, and strlen().