[PSDK]
[reactos.git] / reactos / lib / sdk / crt / string / stricmp.c
1 #include <precomp.h>
2
3 /*
4 * @implemented
5 */
6 int
7 _stricmp(const char *s1, const char *s2)
8 {
9 while (toupper(*s1) == toupper(*s2))
10 {
11 if (*s1 == 0)
12 return 0;
13 s1++;
14 s2++;
15 }
16 return toupper(*(unsigned const char *)s1) - toupper(*(unsigned const char *)(s2));
17 }
18
19 /*
20 * @implemented
21 */
22 int
23 _strcmpi(const char *s1, const char *s2)
24 {
25 return _stricmp(s1,s2);
26 }