Table of Contents
The
function forces a write of all buffered data for the given output or update
via the stream’s underlying write function. The open status of the stream
is unaffected. If the argument is flushes open output streams. The
function erases any input or output buffered in the given For output
streams this discards any unwritten output. For input streams this discards
any input read from the underlying object but not yet obtained via this
includes any text pushed back via
Upon successful completion
0 is returned. Otherwise, is returned and the global variable is set to
indicate the error.
is not an open stream, or, in the case of
not a stream open for writing. The function may also fail and set for
any of the errors specified for the routine
The
function conforms to
Table of Contents