projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix invalid library phdr pointers passed to callback from dl_iterate_phdr
[musl]
/
src
/
string
/
strchr.c
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
}