橘子味的心
标题: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='/uploads/android/2019/1102/22/15727061551431.jpg' >\n", dest, src);

   memmove(dest, src, 9);

   printf("After memmove dest = %s,  src='/uploads/android/2019/1102/22/1572706155388.jpg' >\n", dest, src);



   return(0);

}

目录

分类