Namespaces
Variants
Views
Actions

fflush

From cppreference.com
< c‎ | io
Revision as of 22:35, 31 May 2013 by P12bot (Talk | contribs)

Defined in header <stdio.h>
int fflush( FILE *stream );

Causes the output file stream to be synchronized with the actual contents of the file. If the given stream is of the input type, then the behavior of the function is undefined.

Parameters

stream - the file stream to synchronize

Return value

Returns zero on success. Otherwise EOF is returned and the error indicator of the file stream is set.

See also

opens a file
(function) [edit]
closes a file
(function) [edit]