Sign in
googlers
/
maze
/
klibc
/
klibc-0.18
/
.
/
strrchr.c
blob: 3b424640592b5c483b37bfc5fce995c98c315ee2 [
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
;
}