mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 04:11:30 +00:00
29 lines
391 B
C
29 lines
391 B
C
#include <precomp.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
int
|
|
CDECL
|
|
_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));
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
int
|
|
CDECL
|
|
_strcmpi(const char *s1, const char *s2)
|
|
{
|
|
return _stricmp(s1,s2);
|
|
}
|