these are mostly untested and adapted directly from corresponding byte string functions and similar.
6 lines
123 B
C
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);
|
|
}
|