The libc implementation
Marcel Sondaar
Public Domain
wchar_t * wcsncpy(wchar_t * _PDCLIB_restrict s1,const wchar_t * _PDCLIB_restrict s2,size_t n)
Copies the null terminated wide string s2 to s1. Copies at most n characters, if there are less, it will write zeroes.
Returns the value of s1