Go to the first, previous, next, last section, table of contents.


fpurge

Syntax

#include <stdio.h>

int fpurge(FILE *file);

Description

If file designates a buffered stream open for writing or for both reading and writing, this function purges the stream's buffer without writing it to disk. Otherwise, it does nothing (so it has no effect on read-only streams such as stdin).

Return Value

Zero on success, -1 on failure.

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.