Updating include path in files previously missed.
[reactos.git] / reactos / lib / crtdll / string / stricmp.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/string.h>
3 #include <msvcrt/ctype.h>
4
5 int
6 _stricmp(const char *s1, const char *s2)
7 {
8 while (toupper(*s1) == toupper(*s2))
9 {
10 if (*s1 == 0)
11 return 0;
12 s1++;
13 s2++;
14 }
15 return toupper(*(unsigned const char *)s1) - toupper(*(unsigned const char *)(s2));
16 }
17
18 int
19 _strcmpi(const char *s1, const char *s2)
20 {
21 return _stricmp(s1,s2);
22 }