git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git]
/
lib
/
crtdll
/
wchar
/
wcsnicmp.c
1
#include <crtdll/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
}