memmove函数使用

include <stdio.h>

include <string.h>

int main()
{
//memmove:copy memory area
//voidmemmove(voiddest,const voidsrc,size_t n);
char
s = "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;
}

posted @ 2020-12-14 19:50  卷哭你  阅读(177)  评论(0编辑  收藏  举报