Mail Archives: djgpp/1998/11/16/13:28:25
On Mon, 16 Nov 1998, Won-Seok Lee wrote:
> if this program is compiled and made executable by
> the gcc.exe of the DJGPP, the result is the following:
>
> <no output>
>
> and when I press a button (for example, b),
> then the output is
>
> ba
>
> and the program terminates.
Output is line-buffered, to increase performance. Add a call to fflush
after printf and the program will behave like you expect.
This is explained in more detail in section 9.4 of the DJGPP FAQ list
(v2/faq211b.zip from the same place you got DJGPP).
- Raw text -