In the C Programming Language, the fflush function writes any unwritten data in stream’s buffer. If move is a null pointer, the fflush feature will flush all streams with unwritten statistics in the buffer.
Syntax
The syntax for the fflush feature in the C Language is:
int fflush(FILE *stream);
Parameters or Arguments
stream
The stream to flush.
Returns
The fflush function returns zero if successful or EOF if an error was encountered.
Required Header
In the C Language, the required header for the fflush characteristic is:
#include <stdio.h>
Applies To
In the C Language, the fflush characteristic can be used in the following versions:
ANSI/ISO 9899-1990
See Also
Other C functions that are noteworthy when dealing with the fflush function:
fclose characteristic setbuf characteristic setvbuf feature
Leave a Review