Defined in header
int fflush( FILE *stream );
Causes the output file stream to be synchronized with the actual contents of the file.
The behavior is undefined if the given stream is of the input type or if the given stream is of the update type, but the last I/O operation was not an output operation.
stream is NULL, all open streams are flushed.
|stream||-||the file stream to synchronize|
Returns zero on success. Otherwise EOF is returned and the error indicator of the file stream is set.
| opens a file |
| closes a file |
C documentation for fflush