PatchworkOS
Loading...
Searching...
No Matches
strchr.c
Go to the documentation of this file.
1
#include <
string.h
>
2
3
char
*
strchr
(
const
char
* s,
int
c)
4
{
5
do
6
{
7
if
(*s == (
char
)c)
8
{
9
return
(
char
*)s;
10
}
11
}
while
(*s++);
12
13
return
NULL
;
14
}
NULL
#define NULL
Pointer error value.
Definition
NULL.h:23
strchr
char * strchr(const char *s, int c)
Definition
strchr.c:3
string.h
src
libstd
functions
string
strchr.c
Generated by
1.9.8