memcpy() and memmove()

Syntax
   #include <string.h>

  
  void *memcpy(const void *p, 

  
               const void *q, 

  
               size_t n);

  
  void *memmove(const void *p, 

  
                 const void *q, 

  
                 size_t n);

  
Description

Both functions copy n bytes from q to p. memmove() also works if the two memory areas overlap.

Return

p

See also

strcpy() and

strncpy()