Sign in
cobalt
/
cobalt
/
3cd5432aaed8f14f27f66ade1b51aa71df939492
/
.
/
third_party
/
musl
/
src
/
string
/
strchr.c
blob: bfae8f9f846a01c14d288d34e8659f265a9daf2e [
file
] [
log
] [
blame
]
#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
;
}