mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 09:00:27 +00:00
22 lines
429 B
C
22 lines
429 B
C
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
|
#include <crtdll/string.h>
|
|
#include <crtdll/ctype.h>
|
|
|
|
int
|
|
_stricmp(const char *s1, const char *s2)
|
|
{
|
|
while (toupper(*s1) == toupper(*s2))
|
|
{
|
|
if (*s1 == 0)
|
|
return 0;
|
|
s1++;
|
|
s2++;
|
|
}
|
|
return toupper(*(unsigned const char *)s1) - toupper(*(unsigned const char *)(s2));
|
|
}
|
|
|
|
int
|
|
_strcmpi(const char *s1, const char *s2)
|
|
{
|
|
return _stricmp(s1,s2);
|
|
}
|