Sign in
googlers
/
maze
/
klibc
/
klibc-0.24
/
.
/
strchr.c
blob: 192f83600c0220460cca0774095087a4226cb377 [
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
;
}