17.14.3 Dropping the contents of the buffers of a FILE stream ¶
The fpurge
function drops
the contents of the input and output buffers of the given FILE *
stream:
- It discards the contents of the output buffer, if the stream is currently
writing.
That is the opposite of what the
fflush
function does.
- It discards the contents of the input buffer, if the stream is currently
reading.
That is the same as what the
fflush
function does.