Mail Archives: djgpp/1997/11/24/06:06:04
On Fri, 21 Nov 1997, Nate Eldredge wrote:
> >>Anyway, because this is the most frequently asked frequently
> >>asked question, DJ is planning to change stdout to unbuffered.
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >If this is being considered, might we have then some sort of flag which
> >allow the programmer to choose between buffered or not?
> IMHO, this already exists: it's called `setvbuf'. :)
No, `setvbuf' won't change anything in the way current v2.02 alpha works.
`printf' in v2.02 will call "fflush (stdout)" unconditionally before it
returns. Presumably, programs that care about performance should either
not call `printf' for too small chunks, or use `fprintf' which still
retains the previous buffered behavior.
If you don't agree with that change, lobby DJ.
- Raw text -