OSDN Git Service
(root)
/
android-x86
/
external-musl-libc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge remote-tracking branch 'nsz/exp'
[android-x86/external-musl-libc.git]
/
src
/
string
/
wcsncmp.c
1
#include <wchar.h>
2
3
int wcsncmp(const wchar_t *l, const wchar_t *r, size_t n)
4
{
5
for (; n && *l==*r && *l && *r; n--, l++, r++);
6
return n ? *l - *r : 0;
7
}