projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Improved unicode fileio support.
[reactos.git]
/
reactos
/
lib
/
msvcrt
/
wstring
/
wcsnicmp.c
1
#include <msvcrt/wchar.h>
2
3
int
_wcsnicmp
(
const wchar_t
*
cs
,
const wchar_t
*
ct
,
size_t
count
)
4
{
5
if
(
count
==
0
)
6
return
0
;
7
do
{
8
if
(
towupper
(*
cs
) !=
towupper
(*
ct
++))
9
return
towupper
(*
cs
) -
towupper
(*--
ct
);
10
if
(*
cs
++ ==
0
)
11
break
;
12
}
while
(--
count
!=
0
);
13
return
0
;
14
}