1 #include <string.h> 2 strchr(const char * s,int c)3 char *strchr(const char *s, int c) 4 { 5 char *r = __strchrnul(s, c); 6 return *(unsigned char *)r == (unsigned char)c ? r : 0; 7 } 8