memmove

Copies length characters from one buffer to another buffer

Local Servers:nonblocking
Remote Servers:N/A
Classification:ANSI
Service:Memory Manipulation

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

The memmove function returns dst.

Remarks

The memmove function copies length characters from the buffer pointed to by src to the buffer pointed to by dst. The dst buffer is an exact copy of the src buffer. Copying of overlapping objects guarantees a buffer fill. See memcpy to copy objects that do not overlap.

See Also

memcpy, memset

Example

  #include <string.h>  
   
  main ()  
  {  
     char buffer[80];  
     memmove (buffer+1, buffer, 79);  
     buffer[0] = ’*’;  
  }