memmove函数使用
include <stdio.h>
include <string.h>
int main()
{
//memmove:copy memory area
//voidmemmove(voiddest,const voidsrc,size_t n);
chars = "memmove";
char buf[20] = {0};
/* 我的第一个 C 程序 /
printf("Hello, World! \n");
//memmove
char ret = (char*)memmove(buf,s,strlen(s));
printf("ret is %s\n",ret);
return 0;
}
一勤天下无难事。