This commit is contained in:
fofolee
2019-04-08 23:22:26 +08:00
commit 7ca94f1141
5960 changed files with 530244 additions and 0 deletions

35
docs/c/movmem.html Normal file
View File

@@ -0,0 +1,35 @@
<h1>字符串函数 - movmem</h1>
<p>原型extern void movmem(void *src, void *dest, unsigned int count);</p>
<p>用法:#include &lt;string.h></p>
<p>功能由src所指内存区域复制count个字节到dest所指内存区域。</p>
<p>说明src和dest所指内存区域可以重叠但复制后src内容会被更改。函数返回指向dest的指针。</p>
举例:<pre>
// movmem.c
#include &lt;syslib.h>
#include &lt;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;
}
</pre>相关函数:<a href="memmove.html">memmove</a>