Sign in
mojo
/
mojo-tools
/
4446eb0e2d7a3e9bca844dc343aa4094eaae9a97
/
.
/
fusl
/
src
/
string
/
memcmp.c
blob: bdbce9f0f563cc957b971ef1f2b9dd88421f772a [
file
] [
log
] [
blame
]
#include
<string.h>
int
memcmp
(
const
void
*
vl
,
const
void
*
vr
,
size_t
n
)
{
const
unsigned
char
*
l
=
vl
,
*
r
=
vr
;
for
(;
n
&&
*
l
==
*
r
;
n
--,
l
++,
r
++);
return
n
?
*
l
-*
r
:
0
;
}