Subject: Re: bash-shell output
From: [email-masked] (Fergus Henderson)

4 Feb 1998 21:56:04 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
To: "Howarth, Richard" <[email-masked]>
Cc: [email-masked]

On 04-Feb-1998, Howarth, Richard <[email-masked]> 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 <[email-masked]>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger [email-masked]         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".