Mail Archives: djgpp/1998/08/27/00:46:35
Thomas J. Hruska wrote:
> printf("Hello World!");
>
> It won't print anything to the screen until either the program is
> finished
> or until a newline character is printed.
It's because stdout if line-buffered in DJGPP. You should instead
either do:
printf("Hello world!\n");
or
printf("Hello world!");
fflush(stdout);
The latter does the same thing that you're doing, but forces an explicit
flush of the stdout stream, regardless of buffering.
--
Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900
Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com
San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/
USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE
\
/ Love is the true price of love.
/ George Herbert
- Raw text -