source:
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/string/strchr.c@
337
Last change on this file since 337 was 337, checked in by , 6 years ago | |
---|---|
|
|
File size: 186 bytes |
Rev | Line | |
---|---|---|
[337] | 1 | #include <string.h> |
2 | ||
3 | char *__strchrnul(const char *, int); | |
4 | ||
5 | char *strchr(const char *s, int c) | |
6 | { | |
7 | char *r = __strchrnul(s, c); | |
8 | return *(unsigned char *)r == (unsigned char)c ? r : 0; | |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.