测试一些C特性
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
int main()
|
||||
{
|
||||
while(1)
|
||||
{
|
||||
fprintf(stdout,"hello-out");
|
||||
fprintf(stderr,"hello-err");
|
||||
sleep(1);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
stdout 会缓冲输出
|
||||
|
||||
\n
|
||||
fflush()
|
||||
|
||||
setbuf(stdout,NULL)
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user