请输入您要查询的百科知识:

 

词条 _flushall
释义

函数简介

函数名: _flushall

功 能: 清除所有缓冲区

用 法:int _flushall( void );

头文件:stdio.h

相关函数:fflush、_commit、fclose、 _fcloseall、setvbuf

程序示例

下面这个例子来自MSDN:

#include <stdio.h>

int main( void )

{

int numflushed;

numflushed = _flushall();

printf( "There were %d streams flushed\", numflushed );

return 0;

}

运行结果:

There were 3 streams flushed

Press any key to continue

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/23 14:04:29