flush the input or output buffer for a file
#include <stdio.h> int fflush( FILE *fp );
The fflush() function flushes the input or output buffer for a file:
#include <stdio.h> #include <conio.h> int main( void ) { printf( "Press any key to continue..." ); fflush( stdout ); getch(); return (EXIT_SUCCESS); }
ANSI
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
errno, fgetc(), fgets(), flushall(), fopen(), getc(), gets(), setbuf(), setvbuf(), ungetc()