flushall.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 38 行
GML
38 行
.func flushall
#include <stdio.h>
int flushall( void );
.ixfunc2 '&StrIo' &func
.funcend
.desc begin
The &func function clears all buffers associated with input streams
and writes any buffers associated with output streams.
A subsequent read operation on an input file causes new data
to be read from the associated file or device.
.np
Calling the &func function is equivalent to calling the
.kw fflush
for all open stream files.
.desc end
.return begin
The &func function returns the number of open streams.
When an output error occurs while writing to a file, the
.kw errno
global variable will be set.
.return end
.see begin
.seelist flushall fopen fflush
.see end
.exmp begin
#include <stdio.h>
void main()
{
printf( "The number of open files is %d\n",
flushall() );
}
.exmp output
The number of open files is 4
.exmp end
.class WATCOM
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?