Mail Archives: djgpp/1998/08/30/02:30:48
Thomas J. Hruska wrote:
>
> I'm new to this mailing list (but I'm on about 8 others, so it's nothing
> really new to me how things work). Anyway, I have a problem with the
> printf command. When I do something like:
>
> printf("Hello World!");
>
> It won't print anything to the screen until either the program is finished
> or until a newline character is printed. I never had this problem with my
> Borland compiler (16-bit only). What is the difference? I read some of
> the online documentation at delorie.com and nothing came up about
> compiler/library differences. Is this a bug, or am I missing something?
This is because DJGPP was programmed with a bloody-minded adherence to
the ANSI C standard, which states that the printf buffer does not need
to be flushed at the end of the call.
- Raw text -