Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
string
/
wcpncpy.c
blob: b667f6d6a8dbb5f96b1fdf21f44384aa561a8447 [
file
] [
log
] [
blame
]
#include
<wchar.h>
wchar_t
*
wcpncpy
(
wchar_t
*
restrict d
,
const
wchar_t
*
restrict s
,
size_t
n
)
{
return
wcsncpy
(
d
,
s
,
n
)
+
wcsnlen
(
s
,
n
);
}