PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
strchr.c
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
11
#define SYSCLIB_DISABLE_BUILTINS
12
#include <
sysclib.h
>
13
14
char
*strchr(
const
char
*s,
int
c)
15
{
16
17
if
(!s)
18
{
19
return
0;
20
}
21
while
(1)
22
{
23
int
v2;
24
25
v2 = *s;
26
if
(v2 == (
char
)c)
27
{
28
break
;
29
}
30
s += 1;
31
if
(!v2)
32
{
33
return
0;
34
}
35
}
36
return
(
char
*)s;
37
}
sysclib.h
iop
system
sysclib
src
size_optimized
strchr.c
Generated on Thu Nov 14 2024 05:25:29 for PS2SDK by
1.9.8