C库函数 memmove()


C库函数 memmove()

#include <stdio.h>

#include <string.h>



int main () {

   char dest[] = "oldstring";

   const char src[]  = "newstring";



   printf("Before memmove dest = %s, src = %s\n", dest, src);

   memmove(dest, src, 9);

   printf("After memmove dest = %s, src = %s\n", dest, src);



   return(0);

}