ReactOS  0.4.13-dev-66-gc714b7f
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 }
struct S2 s2
struct S1 s1
int CDECL _stricmp(const char *s1, const char *s2)
Definition: stricmp.c:8

◆ _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 }
struct S2 s2
int toupper(int c)
Definition: utclib.c:881
struct S1 s1

Referenced by _strcmpi().