From: Thomas Harte 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: NNTP-Posting-Host: host5-171-231-1.btinternet.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk [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