wmemmove

Copies the number of wide characters specified by length from one buffer to another buffer, even when the buffers overlap.

Library:LibC
Classification:Single UNIX
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  wchar_t *wmemmove (
     wchar_t         *dst,
     const wchar_t   *src,
     size_t           length);
  

Parameters

dst

(IN) Points to a buffer into which to copy the wide characters.

src

(IN) Points to a buffer containing the wide characters to copy.

length

(IN) Specifies the number of wide characters to move.

Return Values

Returns a pointer to dst.

Remarks

The wmemmove function copies the number of wide characters specified by length from the buffer pointed to by src to the buffer pointed to by dst. Copying takes place as if the number of bytes from the object pointed to by src are first copied into a temporary array of length bytes that does not overlap the objects pointed to by dst and src, and then the bytes from the temporary array are copied into the object pointed to by dst.

If length is zero, no characters are copied.

See Also