memmove

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

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <string.h> 
   
  void *memmove (
     void         *dst,
     const void   *src,
     size_t        length);
  

Parameters

dst

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

src

(IN) Points to a buffer containing the characters to be copied.

length

(IN) Specifies the number of characters to move.

Return Values

Returns a pointer to dst.

Remarks

The memmove function copies the number of characters specified by length from the buffer pointed to by src to the buffer pointed to by dst. Copying takes place as if the 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.

See Also