Gitiles
Code Review
Sign In
LeafOS
/
LeafOS-Devices
/
android_kernel_samsung_universal7904
/
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
/
.
/
arch
/
m68k
/
lib
/
memcmp.c
blob: f4796febb77347ca01d160953c43587e2a37d749 [
file
] [
log
] [
blame
]
#include
<linux/types.h>
int
memcmp
(
const
void
*
cs
,
const
void
*
ct
,
size_t
count
)
{
const
unsigned
char
*
su1
,
*
su2
;
for
(
su1
=
cs
,
su2
=
ct
;
0
<
count
;
++
su1
,
++
su2
,
count
--)
if
(*
su1
!=
*
su2
)
return
((*
su1
<
*
su2
)
?
-
1
:
+
1
);
return
(
0
);
}