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

Go to the source code of this file.

Functions

int CDECL _memicmp (const void *s1, const void *s2, size_t n)
 

Function Documentation

◆ _memicmp()

int CDECL _memicmp ( const void s1,
const void s2,
size_t  n 
)

Definition at line 9 of file memicmp.c.

10 {
11  if (n != 0)
12  {
13  const unsigned char *p1 = s1, *p2 = s2;
14 
15  do {
16  if (toupper(*p1) != toupper(*p2))
17  return (*p1 - *p2);
18  p1++;
19  p2++;
20  } while (--n != 0);
21  }
22  return 0;
23 }
struct S2 s2
GLdouble n
Definition: glext.h:7729
int toupper(int c)
Definition: utclib.c:881
struct S1 s1