musl-tcc/src/string/wcpncpy.c

7 lines
141 B
C
Raw Normal View History

2022-03-20 08:48:53 +00:00
#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);
}