delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/13/07:40:56

From: XXguille AT XXiies DOT XXes (Guillermo Rodriguez Garcia)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Source Code
Date: Thu, 13 May 1999 11:12:29 GMT
Organization: Telefonica Transmision de Datos
Lines: 17
Message-ID: <373d1f61.4713869@noticias.iies.es>
References: <199905122101 DOT RAA18558 AT delorie DOT com>
NNTP-Posting-Host: iies196.iies.es
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.5/32.451
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019