#include <string.h>void *memmove(void *to, const void *from, size_t count);
The memmove( ) function copies count characters from the array pointed to by from into the array pointed to by to. If the arrays overlap, the copy will take place correctly, placing the correct contents into to but leaving from modified.
The memmove( ) function returns a pointer to to.
A related function is memcpy( ).