Copy wide characters from one buffer to another
#include <wchar.h> wchar_t * wmemmove( wchar_t * ws1, const wchar_t * ws2, size_t n );
- A pointer to where you want the function to copy the data.
- A pointer to the buffer that you want to copy data from.
- The number of wide characters to copy.
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The memmove() function copies n wide characters from the buffer pointed to by ws2 to the buffer pointed to by ws1. This function copies overlapping regions safely.
The wmemmove() function is locale-independent and treats all wchar_t values identically, even if they're null or invalid characters.
Use wmemcpy() for greater speed when copying buffers that don't overlap.
A pointer to the destination buffer (i.e. the same pointed as ws1).
Last modified: 2014-06-24