ReactOS  0.4.13-dev-563-g0561610
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 }
struct S2 s2
#define __cdecl
Definition: accygwin.h:79
GLdouble n
Definition: glext.h:7729
int __cdecl memcmp(const void *s1, const void *s2, size_t n)
Definition: memcmp.c:9
struct S1 s1