fpurge()

purge buffered data on stream 

Function


SYNOPSIS

#include <stdio.h>

int fpurge(FILE *stream);


DESCRIPTION

The fpurge() function clears all buffered input and output data on stream. If any data were buffered for output, it is not written to disk.


PARAMETERS

stream 

Points to an open stream.


RETURN VALUES

If successful, the fpurge() function returns a value of zero. On failure, it returns EOF and sets errno as follows:

EBADF 

stream is not a valid, open stream.


CONFORMANCE

4.4BSD.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
fclose(), fflush(), fopen()


MKS Toolkit 9.2 Documentation Build 16.