C examples for wchar.h:wmemmove
function
<cwchar> <wchar.h>
Move block of wide characters
wchar_t* wmemmove (wchar_t* destination, const wchar_t* source, size_t num);
Parameter | Description |
---|---|
destination | Pointer to the destination array. |
source | Pointer to the source data. |
num | Number of elements of type wchar_t to copy. |
destination is returned.
#include <wchar.h> int main ()//from w ww . jav a 2s . c o m { wchar_t wcs[] = L"this is a test test test test..."; wmemmove ( wcs+21, wcs+16, 11 ); wprintf ( L"%ls\n", wcs ); return 0; }