wmemmove - C wchar.h

C examples for wchar.h:wmemmove

Type

function

From


<cwchar>
<wchar.h>

Description

Move block of wide characters

Prototype

wchar_t* wmemmove (wchar_t* destination, const wchar_t* source, size_t num);

Parameters

Parameter Description
destination Pointer to the destination array.
source Pointer to the source data.
num Number of elements of type wchar_t to copy.

Return Value

destination is returned.

Demo Code


#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;
}

Related Tutorials