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

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


SEE ALSO

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


PTC MKS Toolkit 10.4 Documentation Build 39.