Mail Archives: djgpp/1997/11/22/00:06:28
At 08:56 11/19/1997 -0200, Cesar Scarpini Rabak wrote:
>At 09:00 19/11/97 +0100, Thomas Demmer wrote:
>
>>That should be explained in the FAQ, or check the libc info
>>files for the magic word setvbuf.
>>Anyway, because this is the most frequently asked frequently
>>asked question, DJ is planning to change stdout to unbuffered.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>
>>Seems to be too much UNIXism in a DOS world.
>
>Just my two cents:
>
>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'. :) If your program
depended on line buffering (a bad idea anyway), or if you want full
buffering for performance, it should be simple to insert the relevant
`setvbuf' call at the top of `main'; certainly at least as simple as setting
a flag.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -