词条 | movmem |
释义 | 原型:extern void movmem(void *src, void *dest, unsigned int count); 用法:#include <string.h> 功能:由src所指内存区域复制count个字节到dest所指内存区域。 说明:src和dest所指内存区域可以重叠,但复制后src内容会被更改。函数返回指向dest的指针。 举例: // movmem.c #include <syslib.h> #include <string.h> main() { char *s="Golden Global View"; clrscr(); movmem(s,s+7,strlen(s)-7); s[strlen(s)-7]=0; printf("%s",s); getchar(); return 0; } |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。