本文共 472 字,大约阅读时间需要 1 分钟。
原型:extern void *memcpy(void *dest, void *src, unsigned int count); 用法:#include功能:由src所指内存区域复制count个字节到dest所指内存区域。 说明:src和dest所指内存区域不能重叠,函数返回指向dest的指针。 举例: // memcpy.c #include #include main() { char *s="Golden Global View"; char d[20]; clrscr(); memcpy(d,s,strlen(s)); d[strlen(s)]=0; printf("%s",d); getchar(); return 0; }
转载地址:http://ipwkf.baihongyu.com/