Sign in
apache
/
mynewt-core
/
refs/tags/mynewt_1_5_0_rc1_tag
/
.
/
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
;
}