ReactOS  0.4.14-dev-614-gbfd8a84
memcmp.c File Reference
#include <string.h>
Include dependency graph for memcmp.c:

Go to the source code of this file.

Functions

int __cdecl memcmp (const void *s1, const void *s2, size_t n)
 

Function Documentation

◆ memcmp()

int __cdecl memcmp ( const void s1,
const void s2,
size_t  n 
)

Definition at line 9 of file memcmp.c.

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
GLdouble n
Definition: glext.h:7729
struct S1 s1