Copies wide characters from wstr_2 into wstr_1. The function copies up to a maximum of maxchar characters.
#include <wchar.h>
wchar_t *wcsncpy (wchar_t *wstr_1, const wchar_t
*wstr_2, size_t maxchar);
Function Variants
This function also has variants named _wcsncpy32 and _wcsncpy64
for use with 32-bit and 64-bit pointer sizes, respectively. See
Section 1.8 for more information on using
pointer-size-specific functions.
If wstr_2 contains maxchar or more characters, as many characters as possible are copied to wstr_1. The null terminator of wstr_2 is not copied to wstr_1.
See also wcscpy in this section.
| x | The address of wstr_ 1. |