repo.or.cz
/
mascara-docs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* added 0.99 linux version
[mascara-docs.git]
/
i386
/
linux
/
linux-2.3.21
/
arch
/
m68k
/
lib
/
memcmp.c
blob
f4796febb77347ca01d160953c43587e2a37d749
1
#include <linux/types.h>
2
3
int
memcmp
(
const void
*
cs
,
const void
*
ct
,
size_t
count
)
4
{
5
const unsigned char
*
su1
, *
su2
;
6
7
for
(
su1
=
cs
,
su2
=
ct
;
0
<
count
; ++
su1
, ++
su2
,
count
--)
8
if
(*
su1
!= *
su2
)
9
return
((*
su1
< *
su2
) ? -
1
: +
1
);
10
return
(
0
);
11
}