PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
strchr.c
1#define SYSCLIB_DISABLE_BUILTINS
2#include <sysclib.h>
3
4char *__strchrnul(const char *s, int c);
5
6char *strchr(const char *s, int c)
7{
8 char *r = __strchrnul(s, c);
9 return *(unsigned char *)r == (unsigned char)c ? r : 0;
10}