ReactOS
0.4.16-dev-122-g325d74c
Functions
strnicmp.c File Reference
#include <precomp.h>
Include dependency graph for strnicmp.c:
Go to the source code of this file.
Functions
int
CDECL
_strnicmp
(
const
char
*
s1
,
const
char
*
s2
,
size_t
n
)
Function Documentation
◆
_strnicmp()
int
CDECL
_strnicmp
(
const
char
*
s1
,
const
char
*
s2
,
size_t
n
)
Definition at line
6
of file
strnicmp.c
.
7
{
8
9
if
(
n
== 0)
10
return
0;
11
do
{
12
if
(
toupper
(*
s1
) !=
toupper
(*
s2
++))
13
return
toupper
(*(
unsigned
const
char
*)
s1
) -
toupper
(*(
unsigned
const
char
*)--
s2
);
14
if
(*
s1
++ == 0)
15
break
;
16
}
while
(--
n
!= 0);
17
return
0;
18
}
toupper
int toupper(int c)
Definition:
utclib.c:881
n
GLdouble n
Definition:
glext.h:7729
s1
struct S1 s1
s2
struct S2 s2
sdk
lib
crt
string
strnicmp.c
Generated on Sun Oct 13 2024 06:22:47 for ReactOS by
1.9.6