Mail Archives: djgpp/2000/07/13/23:46:06
Hello ... DJ Delorie! (are you the author of DJGPP?)
Thank you for your suggestion, and I will read setbuf(3c).
Actually the out/err comes from dos-batch file which calls
compilers/linkers. So I guess I will write a driver c program which uses
setbuf, then system calls the batch file... Am I on the right track?
yosuke kimura
DJ Delorie (dj AT delorie DOT com) wrote:
: stderr is unbuffered by default, but stdout is line buffered if the
: output is the screen or *block* buffered if the output is a file
: (i.e. redirected). The only way to avoid this is to use one of the
: buffer-setting functions (setbuf, setbuffer, setvbuf) to change the
: output buffering of stderr and/or stdout.
--
yosuke kimura
Center for Energy and Environmental Resources
The Univ. of Texas at Austin, USA
- Raw text -