#include <string.h> #include <stdio.h> main() { char pdest[14] = "hello there"; char *psource = "you are there"; memmove(pdest, psource, 7); printf("%s\n", pdest); } This example produces the following output: you are there