_flushall

_flushall

基本介紹

  • 中文名:_flushall
  • 功 能:清除所有緩衝區
  • 用 法:int _flushall( void );
  • 頭檔案stdio.h
函式簡介,程式示例,

函式簡介

函式名: _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\n", numflushed );
return 0;
}
運行結果:
There were 3 streams flushed
Press any key to continue

相關詞條

熱門詞條

聯絡我們