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: