wchar_t* wmemmove (wchar_t* destination, const wchar_t* source, size_t num);
Move block of wide characters
Copies the values of num elements of type wchar_t from the location pointed by source to the location pointed by destination. Copying takes place as if an intermediate buffer were used, allowing the destination and source to overlap.
The function does not check for any terminating null wide character in source - it always copies exactly num elements of type wchar_t.
To avoid overflows, the size of the arrays pointed by both the destination and source parameters, shall be at least num elements of type wchar_t.
This is the wide character equivalent of memmove (<cstring>).
- Pointer to the destination array where the content is to be copied.
- Pointer to the source of data to be copied.
- Number of elements of type wchar_t to copy.
size_t is an unsigned integral type.
destination is returned.
/* wmemmove example */
int main ()
wchar_t wcs = L"wmemmove can be very useful......";
wmemmove ( wcs+21, wcs+16, 11 );
wprintf ( L"%ls\n", wcs );
wmemmove can be very very useful.
- Move block of memory (function)
- Copy block of wide characters (function)
- Compare two blocks of wide characters (function)
- Fill array of wide characters (function)
- Copy characters from wide string (function)