ReactOS 0.4.15-dev-7113-g9ea2222
stricmp.c File Reference
#include <precomp.h>
Include dependency graph for stricmp.c:

Go to the source code of this file.

Functions

int CDECL _stricmp (const char *s1, const char *s2)
 
int CDECL _strcmpi (const char *s1, const char *s2)
 

Function Documentation

◆ _strcmpi()

int CDECL _strcmpi ( const char s1,
const char s2 
)

Definition at line 25 of file stricmp.c.

26{
27 return _stricmp(s1,s2);
28}
#define _stricmp
Definition: cat.c:22
struct S1 s1
struct S2 s2

◆ _stricmp()

int CDECL _stricmp ( const char s1,
const char s2 
)

Definition at line 8 of file stricmp.c.

9{
10 while (toupper(*s1) == toupper(*s2))
11 {
12 if (*s1 == 0)
13 return 0;
14 s1++;
15 s2++;
16 }
17 return toupper(*(unsigned const char *)s1) - toupper(*(unsigned const char *)(s2));
18}
int toupper(int c)
Definition: utclib.c:881