Example: memmove
The following example moves the first 4 characters 1 space forward. Because the first character, `a', remains unchanged, "abcde" becomes "aabcd".
#include <string.h>
char buffer[80];
strcpy( buffer, "abcde");
memmove(buffer+1, buffer, 4 );
lr_output_message ("New string: %s\n", buffer);
Example: Output:
New string: aabcd