Mail Archives: djgpp/1995/07/19/15:16:54
In article <DBvs64 DOT HEw AT jade DOT mv DOT net> kagel AT quasar DOT bloomberg DOT com writes:
I've got a problem porting BolrandC programs to DJGPP: if I don't
specify setbuf(stdout, NULL) in DJGPP I have a buffered output, that
can't be seen until the newline is printed...
How can I do to avoid the setbuf line in every program?
Print to stderr rather than stdout (ie use fprintf( stderr, ....); instead
of printf(...);) DJGPP is behaving correctly.
Or place a fflush(stdout) after the printf, since that is what you mean.
I mean, why play non-portable buffering games in your code and make it
harder to understand?
--
Ronald Cole E-mail: zippy AT ecst DOT csuchico DOT edu
Senior Software Engineer ronald AT optx DOT com
OTCS Incorporated, a Brian Meyerpeter company ronald AT netcom DOT com
"The Bill Of Rights -- Void Where Prohibited By Law"
- Raw text -