1570af302Sopenharmony_ci#include <wchar.h> 2570af302Sopenharmony_ci 3570af302Sopenharmony_ciwchar_t *wcpncpy(wchar_t *restrict d, const wchar_t *restrict s, size_t n) 4570af302Sopenharmony_ci{ 5570af302Sopenharmony_ci return wcsncpy(d, s, n) + wcsnlen(s, n); 6570af302Sopenharmony_ci} 7