musl/src/string/wcpncpy.c
Rich Felker e0614f7cd4 add all missing wchar functions except floating point parsers
these are mostly untested and adapted directly from corresponding byte
string functions and similar.
2012-03-01 23:24:45 -05:00

6 lines
123 B
C

#include <wchar.h>
wchar_t *wcpncpy(wchar_t *d, const wchar_t *s, size_t n)
{
return wcsncpy(d, s, n) + wcsnlen(s, n);
}