std::wmemcpy (3) - Linux Manuals
std::wmemcpy: std::wmemcpy
NAME
Synopsis
Defined in header <cwchar>
wchar_t* wmemcpy( wchar_t* dest, const wchar_t* src, std::size_t count );
Copies exactly count successive wide characters from the wide character array pointed to by src to the wide character array pointed to by dest. If the objects overlap, the behavior is undefined. If count is zero, the function does nothing.
Parameters
dest - pointer to the wide character array to copy to
src - pointer to the wide character array to copy from
count - number of wide characters to copy
Return value
dest
Notes
This function's analog for byte strings is std::strncpy, not std::strcpy.
This function is not locale-sensitive and pays no attention to the values of the wchar_t objects it copies: nulls as well as invalid characters are copied too.
Example
// Run this code
Possible output:
See also
strncpy (function)
wmemmove (function)