mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-24 02:59:41 +08:00
v0.0.2
This commit is contained in:
@@ -1,35 +1,35 @@
|
||||
<h1>标准库函数 - sleep</h1>
|
||||
|
||||
|
||||
<p>原型:extern void sleep(unsigned int sec);</p>
|
||||
|
||||
<p>用法:#include <system.h></p>
|
||||
|
||||
<p>功能:短暂延时</p>
|
||||
|
||||
<p>说明:延时sec秒</p>
|
||||
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// sleep.c
|
||||
|
||||
#include <system.h>
|
||||
|
||||
main()
|
||||
{
|
||||
int c;
|
||||
|
||||
clrscr();
|
||||
printf("\nHello, world!");
|
||||
|
||||
sleep(1);
|
||||
|
||||
clrscr();
|
||||
printf("\nHi, guys");
|
||||
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
|
||||
</code></pre>相关函数:<a href="delay.html">delay</a>
|
||||
|
||||
<h1>标准库函数 - sleep</h1>
|
||||
|
||||
|
||||
<p>原型:extern void sleep(unsigned int sec);</p>
|
||||
|
||||
<p>用法:#include <system.h></p>
|
||||
|
||||
<p>功能:短暂延时</p>
|
||||
|
||||
<p>说明:延时sec秒</p>
|
||||
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// sleep.c
|
||||
|
||||
#include <system.h>
|
||||
|
||||
main()
|
||||
{
|
||||
int c;
|
||||
|
||||
clrscr();
|
||||
printf("\nHello, world!");
|
||||
|
||||
sleep(1);
|
||||
|
||||
clrscr();
|
||||
printf("\nHi, guys");
|
||||
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
|
||||
</code></pre>相关函数:<a href="delay.html">delay</a>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user