PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
memcmp.c
1#define SYSCLIB_DISABLE_BUILTINS
2#include <sysclib.h>
3
4int memcmp(const void *vl, const void *vr, size_t n)
5{
6 const unsigned char *l=vl, *r=vr;
7 for (; n && *l == *r; n--, l++, r++);
8 return n ? *l-*r : 0;
9}