ReactOS
0.4.15-dev-6679-g945ee4b
memicmp.c
Go to the documentation of this file.
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
#include <precomp.h>
3
4
/*
5
* @implemented
6
*/
7
int
8
CDECL
9
_memicmp
(
const
void
*
s1
,
const
void
*
s2
,
size_t
n
)
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
}
toupper
int toupper(int c)
Definition:
utclib.c:881
CDECL
#define CDECL
Definition:
compat.h:29
n
GLdouble n
Definition:
glext.h:7729
_memicmp
int CDECL _memicmp(const void *s1, const void *s2, size_t n)
Definition:
memicmp.c:9
s1
struct S1 s1
s2
struct S2 s2
sdk
lib
crt
mem
memicmp.c
Generated on Sat Sep 30 2023 06:12:15 for ReactOS by
1.9.6