Mail Archives: djgpp/1999/05/13/07:40:56
El día Wed, 12 May 1999 23:01:17 +0200, Wigoo
<suk20um AT axpsu DOT fpf DOT slu DOT cz> escribió:
>I`m programming beginner and strange things happend to me, when I want to
>write something to screen using printf I have to use \n at the end of the
>line because without it the string will be shown at the end of the program.
>Can you help me?
This is normal. The standard output is line buffered; text won't
actually get printed until a line is ended with a CR. If you want to
force the text to be printed use fflush(stdout) just after the printf.
Regards,
GUILLE
----
Guillermo Rodriguez Garcia
XXguille AT XXiies DOT XXes (ya sabes :-)
- Raw text -