9 lines
186 B
C
9 lines
186 B
C
#include <string.h>
|
|
|
|
char *__strchrnul(const char *, int);
|
|
|
|
char *strchr(const char *s, int c)
|
|
{
|
|
char *r = __strchrnul(s, c);
|
|
return *(unsigned char *)r == (unsigned char)c ? r : 0;
|
|
}
|