mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +00:00
f01dd17793
svn path=/trunk/; revision=1445
21 lines
374 B
C
21 lines
374 B
C
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
|
#include <msvcrt/ctype.h>
|
|
#include <msvcrt/string.h>
|
|
|
|
int
|
|
_memicmp(const void *s1, const void *s2, size_t n)
|
|
{
|
|
if (n != 0)
|
|
{
|
|
const unsigned char *p1 = s1, *p2 = s2;
|
|
|
|
do {
|
|
if (toupper(*p1) != toupper(*p2))
|
|
return (*p1 - *p2);
|
|
p1++;
|
|
p2++;
|
|
} while (--n != 0);
|
|
}
|
|
return 0;
|
|
}
|