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: fix missing bounds checking for shift_jis decoding
[musl.git]
/
src
/
string
/
wcpncpy.c
blob
b667f6d6a8dbb5f96b1fdf21f44384aa561a8447
1
#include <wchar.h>
2
3
wchar_t
*
wcpncpy
(
wchar_t
*
restrict d
,
const wchar_t
*
restrict s
,
size_t
n
)
4
{
5
return
wcsncpy
(
d
,
s
,
n
) +
wcsnlen
(
s
,
n
);
6
}