📄 flushall.gml
字号:
.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -