ReactOS
0.4.16-dev-59-gd481587
memcmp.c
Go to the documentation of this file.
1
2
#include <string.h>
3
4
#ifdef _MSC_VER
5
#pragma warning(disable: 4164)
6
#pragma function(memcmp)
7
#endif
8
9
int
__cdecl
memcmp
(
const
void
*
s1
,
const
void
*
s2
,
size_t
n
)
10
{
11
if
(
n
!= 0) {
12
const
unsigned
char
*p1 =
s1
, *p2 =
s2
;
13
do
{
14
if
(*p1++ != *p2++)
15
return
(*--p1 - *--p2);
16
}
while
(--
n
!= 0);
17
}
18
return
0;
19
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
n
GLdouble n
Definition:
glext.h:7729
memcmp
int __cdecl memcmp(const void *s1, const void *s2, size_t n)
Definition:
memcmp.c:9
s1
struct S1 s1
s2
struct S2 s2
sdk
lib
crt
mem
memcmp.c
Generated on Thu Sep 19 2024 06:13:04 for ReactOS by
1.9.6