This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: bash-shell output
- To: "Howarth, Richard" <rhowarth at sgb dot co dot uk>
- Subject: Re: bash-shell output
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- Date: Thu, 5 Feb 1998 14:11:11 +1100
- Cc: gnu-win32 at cygnus dot com
- References: <199802041701.RAA06495@peanut.sgb.co.uk>
On 04-Feb-1998, Howarth, Richard <rhowarth@sgb.co.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@cs.mu.oz.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@128.250.37.3 | -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".