flush the input or output buffer for a file
#include <stdio.h> int fflush( FILE *fp );
If the file fp is open for output or update, the fflush() function causes any unwritten data to be written to the file. If the file fp is open for input or update, the fflush() function undoes the effect of any preceding ungetc operation on the stream. If the value of fp is NULL, then all files that are open will be flushed.
errno, fgetc(), fgets(), flushall(), fopen(), getc(), gets(), setbuf(), setvbuf(), ungetc()
#include <stdio.h> #include <conio.h> void main() { printf( "Press any key to continue..." ); fflush( stdout ); getch(); }
ANSI
All (except DOS/PM)