Sign in
apache
/
mynewt-documentation
/
94c47ae2bc67c54a68d227abbb47c27ae97cc232
/
.
/
versions
/
v1_4_0
/
mynewt-core
/
libc
/
baselibc
/
src
/
strchr.c
blob: 6a573130e727eb81be9ee18670eabb658e9d6efb [
file
] [
log
] [
blame
]
/*
* strchr.c
*/
#include
<string.h>
char
*
strchr
(
const
char
*
s
,
int
c
)
{
while
(*
s
!=
(
char
)
c
)
{
if
(!*
s
)
return
NULL
;
s
++;
}
return
(
char
*)
s
;
}