cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/14/22:19:23

Date: Fri, 15 Jan 1999 03:19:14 +0000 (GMT)
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: How do I use fflush ?
In-Reply-To: <19990115023752.3874.rocketmail@send204.yahoomail.com>
Message-ID: <Pine.OSF.4.05.9901150314300.11624-100000@sable.ox.ac.uk>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Thu, 14 Jan 1999, Ben Sashe wrote:

> Dear Sir,
>         I am not able to use fflush(I am new to programming).

Please say what you wrote, what you expected to happen and what
actually did happen.

Are you trying to use fflush on an input stream?  If so,
remember that it's an undefined operation -- fflush only affects
output streams in a defined (by the standard) way.  So the
effect of something like `fflush (stdin);' is not defined by the
standard; while some C libraries clear characters from the
stream, djgpp's does not.

On an output stream, `fflush' sends all buffered characters
immediately.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

ko cilre fi la lojban  --  http://xiron.pc.helsinki.fi/lojban/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019