delorie.com/djgpp/doc/libc/libc_346.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004