#include <stdio.h>
#include <string.h>
int main () {
const char src[50] = "https://www.yiibai.com";
char dest[50];
printf("Before memcpy dest = %s/n", dest);
memcpy(dest, src, strlen(src)+1);
printf("After memcpy dest = %s/n", dest);
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/265273.html