#include <cstring> void *memmove( void *to, const void *from, size_t count );
The memmove() function is identical to memcpy(), except that it works even if to and from overlap.