www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/27/08:30:44

From: Thomas Harte <T DOT Harte AT btinternet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Strange DJGPP bug
Date: Sun, 27 Sep 1998 13:17:18 +0100
Organization: BT Internet
Lines: 10
Message-ID: <360E2CCE.4A134DDC@btinternet.com>
References: <slrn70rpos DOT 5bh DOT user AT ts001d22 DOT cin-oh DOT concentric DOT net>
NNTP-Posting-Host: host5-171-231-1.btinternet.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

[cut it all]

	Your problem is that DJGPP buffers all its streams, so your output is
not seen until the program ends, and the buffers are flushed (to prevent
breaking files and so on). If you use '\n's to newline, the buffer is
flushede, or - if you don't want a newline - just use 'fflush(stdout);'
to force the contents of stdout (where printf writes to) to be outputted
immediately.

		-Thomas

- Raw text -


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