ReactOS
0.4.16-dev-852-gcfcc8d8
stricmp.c
Go to the documentation of this file.
1
#include <precomp.h>
2
3
/*
4
* @implemented
5
*/
6
int
7
CDECL
8
_stricmp
(
const
char
*
s1
,
const
char
*
s2
)
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
}
19
20
/*
21
* @implemented
22
*/
23
int
24
CDECL
25
_strcmpi
(
const
char
*
s1
,
const
char
*
s2
)
26
{
27
return
_stricmp
(
s1
,
s2
);
28
}
toupper
int toupper(int c)
Definition:
utclib.c:881
_stricmp
#define _stricmp
Definition:
cat.c:22
CDECL
#define CDECL
Definition:
compat.h:29
s1
struct S1 s1
s2
struct S2 s2
_strcmpi
int CDECL _strcmpi(const char *s1, const char *s2)
Definition:
stricmp.c:25
sdk
lib
crt
string
stricmp.c
Generated on Sun Mar 23 2025 06:14:02 for ReactOS by
1.9.6