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

42
docs/c/exit.html Normal file
View File

@@ -0,0 +1,42 @@
<h1>标准库函数 - exit</h1>
<p>原型extern void exit(int retval);</p>
<p>用法:#include &lt;stdlib.h></p>
<p>功能:结束程序</p>
<p>说明:返回值将被忽略</p>
举例:<pre>
// exit.c
#include &lt;syslib.h>
#include &lt;stdlib.h>
main()
{
int i;
clrscr(); // clear screen
textmode(0x00);
for(i=0;i<10;i++)
{
if(i==5) exit(0);
else
{
clrscr();
printf("%d",i);
getchar();
}
}
getchar();
return 0;
}
</pre>相关函数:无