Sign in
cobalt
/
cobalt
/
97b64f26fb12c9eab352139c26f0b01d1cb6d0b9
/
.
/
third_party
/
musl
/
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
;
}