git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4a99c8c492af8d39ba16fe4fc131179cccb50bf0
[reactos.git]
/
lib
/
msvcrt
/
wstring
/
wcsnicmp.c
1
#include <msvcrt/wchar.h>
2
3
/*
4
* @implemented
5
*/
6
int _wcsnicmp (const wchar_t *cs, const wchar_t *ct, size_t count)
7
{
8
if (count == 0)
9
return 0;
10
do {
11
if (towupper(*cs) != towupper(*ct++))
12
return towupper(*cs) - towupper(*--ct);
13
if (*cs++ == 0)
14
break;
15
} while (--count != 0);
16
return 0;
17
}