Mail Archives: djgpp/1998/03/31/05:27:37
On Mon, 30 Mar 1998, Geoff Schoenbaum, MD, PhD wrote:
> In porting my c++ code from a ms compiler to djgpp I've discovered that
> my printf statements no longer appear on the screen until a carriage
> return is executed using "\n"
This is a FAQ. See section 9.4 of the DJGPP FAQ list.
> - does anyone know why this happens in djgpp
Because stdout is line-buffered.
> or how to work around it?
Use "fflush (stdout);" if you want the output to be delivered without a
newline. Other solutions are discussed in the FAQ.
- Raw text -