Sign in
apache
/
mynewt-core
/
refs/tags/mynewt_1_5_0_rc1_tag
/
.
/
libc
/
baselibc
/
src
/
strrchr.c
blob: 69b238f3cfb91077261ae0418aff8982d6ac18ba [
file
] [
log
] [
blame
]
/*
* strrchr.c
*/
#include
<string.h>
char
*
strrchr
(
const
char
*
s
,
int
c
)
{
const
char
*
found
=
NULL
;
while
(*
s
)
{
if
(*
s
==
(
char
)
c
)
found
=
s
;
s
++;
}
return
(
char
*)
found
;
}