projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix tabs/spaces in memcpy.s
[oweals/musl.git]
/
src
/
string
/
wcsncasecmp.c
1
#include <wchar.h>
2
#include <wctype.h>
3
4
int wcsncasecmp(const wchar_t *l, const wchar_t *r, size_t n)
5
{
6
if (!n--) return 0;
7
for (; *l && *r && n && (*l == *r || towlower(*l) == towlower(*r)); l++, r++, n--);
8
return towlower(*l) - towlower(*r);
9
}