repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
iconv: add euro symbol to GBK as single byte 0x80
[musl.git]
/
src
/
string
/
wcsncmp.c
blob
2b3558bf72f698e478ab05a9ae92ebfb7ef637f2
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
? -
1
: *
l
> *
r
) :
0
;
7
}