Declaration:
int fflush(unsigned long stream);
Description
Flushes a stream.
If the given stream has buffered output fflush writes the output for stream to the associated file. The stream remains opened after fflush is executed. fflush produces no effect on the unbuffered stream.
Returned Value
fflush returns 0 on success. It will return EOF, if any errors are detected.
|