memmove
Copies length characters from one buffer to another buffer
#include <string.h> void *memmove ( void *dst, const void *src, size_t length);
The memmove function returns dst.
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.
#include <string.h> main () { char buffer[80]; memmove (buffer+1, buffer, 79); buffer[0] = ’*’; }