mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
b819608ed8
svn path=/branches/condrv_restructure/; revision=63104
18 lines
338 B
C
18 lines
338 B
C
#include <precomp.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
int _strnicmp(const char *s1, const char *s2, size_t n)
|
|
{
|
|
|
|
if (n == 0)
|
|
return 0;
|
|
do {
|
|
if (toupper(*s1) != toupper(*s2++))
|
|
return toupper(*(unsigned const char *)s1) - toupper(*(unsigned const char *)--s2);
|
|
if (*s1++ == 0)
|
|
break;
|
|
} while (--n != 0);
|
|
return 0;
|
|
}
|