delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/04/21:56:04

From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson)
Subject: Re: bash-shell output
4 Feb 1998 21:56:04 -0800 :
Message-ID: <19980205141111.21244.cygnus.gnu-win32@mundook.cs.mu.OZ.AU>
References: <199802041701 DOT RAA06495 AT peanut DOT sgb DOT co DOT uk>
Mime-Version: 1.0
To: "Howarth, Richard" <rhowarth AT sgb DOT co DOT uk>
Cc: gnu-win32 AT cygnus DOT com

On 04-Feb-1998, Howarth, Richard <rhowarth AT sgb DOT co DOT uk> wrote:
> fflush expects a file descriptor, so passing NULL is definately not
> going to work.

No, fflush(NULL) flushes all output streams.  Read the C standard.

> Assuming you want to force the output from the printf statement, use
> fflush(stdout);

I think you missed the original poster's point: he wants the flushing to
happen *without* changing the source code.  As he said:

> > Some other programs are just unusable because of this behavior.

-- 
Fergus Henderson <fjh AT cs DOT mu DOT oz DOT au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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