Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
string
/
wcsncmp.c
blob: 4ab32a924c4657dadd98677d4771042f120f43c8 [
file
] [
log
] [
blame
]
#include
<wchar.h>
int
wcsncmp
(
const
wchar_t
*
l
,
const
wchar_t
*
r
,
size_t
n
)
{
for
(;
n
&&
*
l
==*
r
&&
*
l
&&
*
r
;
n
--,
l
++,
r
++);
return
n
?
*
l
-
*
r
:
0
;
}