repo.or.cz
/
vde.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
- fixed poll emulation management
[vde.git]
/
vde-2
/
compat
/
memcmp.c
blob
f870f286abc3f66f0537913afda12fa9327d9dd4
1
2
int
memcmp
(
const void
*
v1
,
const void
*
v2
,
size_t
n
)
3
{
4
if
(
n
!=
0
) {
5
const unsigned char
*
s1
=
v1
, *
s2
=
v2
;
6
do
{
7
if
(*
s1
++ != *
s2
++)
return
*--
s1
- *--
s2
;
8
}
while
(--
n
!=
0
);
9
}
10
return
0
;
11
}
12