What is the difference between the functions memmove() and memcpy()?

Showing Answers 1 - 1 of 1 Answers

Linto VJ

  • Aug 31st, 2006
 

 
   void *memmove(void *DST, const void *SRC, size_t LENGTH);

   This  function moves LENGTH characters from the block of memory start-
   ing at `*SRC' to the memory starting at `*DST'.  `memmove'  reproduces
   the characters correctly at `*DST' even if the two areas overlap.


   void* memcpy(void *OUT, const void *IN, size_t N);
 
   This  function  copies N bytes from the memory region pointed to by IN
   to the memory region pointed to by OUT.

    If the regions overlap, the behavior is undefined.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions