XINU
lib
strchr.c
Go to the documentation of this file.
1
13
char
*
strchr
(
const
char
*s,
int
c)
14
{
15
for
(; *s !=
'\0'
; s++)
16
{
17
if
(*s == (
const
char
)c)
18
{
19
return
(
char
*)s;
20
}
21
}
22
23
if
((
const
char
)c == *s)
24
{
25
return
(
char
*)s;
26
}
27
28
return
0;
29
}
strchr
char * strchr(const char *s, int c)
指定された文字を文字列から探し、最初にに見つかった位置をポインタで返す。
Definition:
strchr.c:13
Generated by
1.8.13