📄 fflush.gml
字号:
.func fflush
#include <stdio.h>
int fflush( FILE *fp );
.ixfunc2 '&StrIo' &func
.funcend
.desc begin
If the file
.arg fp
is open for output or update, the &func
function causes any unwritten data to be written to the file.
.ix '&StrIo' ungetc
If the file
.arg fp
is open for input or update, the &func function undoes the effect of
any preceding
.kw ungetc
operation on the stream.
If the value of
.arg fp
is
.mono NULL,
then all files that are open will be flushed.
.desc end
.return begin
The &func function returns non-zero if a write error occurs and zero
otherwise.
.im errnoref
.return end
.see begin
.seelist fflush fgetc fgets flushall fopen getc gets setbuf setvbuf ungetc
.see end
.exmp begin
#include <stdio.h>
#include <conio.h>
void main()
{
printf( "Press any key to continue..." );
fflush( stdout );
getch();
}
.exmp end
.class ANSI
.system
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -