PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
memrchr.c
1#define SYSCLIB_DISABLE_BUILTINS
2#include <sysclib.h>
3
4void *__memrchr(const void *m, int c, size_t n)
5{
6 const unsigned char *s = m;
7 c = (unsigned char)c;
8 while (n--) if (s[n]==c) return (void *)(s+n);
9 return 0;
10}