repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
when building for arm as thumb2 code, also request assembly as thumb
[musl.git]
/
src
/
string
/
strchr.c
blob
bfae8f9f846a01c14d288d34e8659f265a9daf2e
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
}