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

41
docs/c/bzero.html Normal file
View File

@@ -0,0 +1,41 @@
<h1>字符串函数 - bzero</h1>
<p>原型extern void bzero(void *s, int n);</p>
<p>用法:#include &lt;string.h></p>
<p>功能置字节字符串s的前n个字节为零。</p>
<p>说明bzero无返回值。</p>
举例:<pre>
// bzero.c
#include &lt;syslib.h>
#include &lt;string.h>
main()
{
struct
{
int a;
char s[5];
float f;
} tt;
char s[20];
bzero(&tt,sizeof(tt)); // struct initialization to zero
bzero(s,20);
clrscr();
printf("Initail Success");
getchar();
return 0;
}
</pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="bcopy.html">bcopy</a>