MicrOS
fflush.c File Reference
#include "../stdio.h"

Functions

int fflush (FILE *stream)
 Flush stream. More...
 

Function Documentation

◆ fflush()

int fflush ( FILE stream)

Flush stream.

If the given stream was open for writing any unwritten data in its output buffer is written to the file. If stream is a null pointer, all such streams are flushed.

Parameters
streamPointer to a FILE object that identifies the stream to be closed.
Returns
A zero value indicates success. If an error occurs, EOF is returned and the error indicator is set.