repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding upstream version 3.61.
[syslinux-debian/hramrach.git]
/
com32
/
lib
/
memcmp.c
blob
f6bc17286f0e4e7f758aa0bc5fec4dee0c300e65
1
/*
2
* memcmp.c
3
*/
4
5
#include <string.h>
6
7
int
memcmp
(
const void
*
s1
,
const void
*
s2
,
size_t
n
)
8
{
9
const unsigned char
*
c1
=
s1
, *
c2
=
s2
;
10
int
d
=
0
;
11
12
while
(
n
-- ) {
13
d
= (
int
)*
c1
++ - (
int
)*
c2
++;
14
if
(
d
)
15
break
;
16
}
17
18
return
d
;
19
}