#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);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/265272.html