_flushall

Flushes the buffer of all open streams to disk.

int _flushall (void);

int _fflushall (void);

int flushall (void);

Required Header
<stdio.h>

Return Value

Each of these functions returns the number of open streams.

Remarks

The _flushall function is implemented using the fflush function. More notes on the various file modes are available on that help page.

Stream I/O Routines

See Also    fclose, fflush, setbuf, setvbuf, ungetc