Sign in
android
/
platform
/
external
/
musl
/
3ea3fcf78a5532e118856846df8adbf3f60ef716
/
.
/
src
/
string
/
strchr.c
blob: 3cbc828bebf705ae570e1bfd0c2b518f929c054c [
file
] [
log
] [
blame
]
#include
<string.h>
char
*
strchr
(
const
char
*
s
,
int
c
)
{
char
*
r
=
__strchrnul
(
s
,
c
);
return
*(
unsigned
char
*)
r
==
(
unsigned
char
)
c
?
r
:
0
;
}