www.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   donations   bookstore     delorie software   privacy  
  Copyright © 2004   by DJ Delorie     Updated Apr 2004  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)