From: Joe Wright Newsgroups: comp.os.msdos.djgpp Subject: Re: bug in printf? Date: Mon, 03 Feb 1997 00:04:23 -0500 Organization: Alpha Solutions International Lines: 21 Message-ID: <32F571D7.3EFD@exis.net> References: <01bc0fa6$84d26520$5357f8ce AT 698130> Reply-To: wrightj AT exis DOT net NNTP-Posting-Host: ppp-3-72.exis.net 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 Ian Mausolus wrote: > > When using printf in Watcom C 32-bit and DJGPP I found that it didn't seem > to function properly. The printed items just would not get displayed > unless they were ended with a hard return (\n) ? Does anybody know why? > Does anybody know how to fix it? Did anybody write a replacement for > printf that actually works fine? > > Thanks, > > I. Mausolus Not a bug, really. Just annoying sometimes. printf() output is buffered and doesn't get to the console until the '\n' is sent (as you noted). If you must get to the screen before \n you need an un-buffered function like, in djgpp, cprintf() declared in conio.h. See if Watcom has conio.h too. -- Joe Wright mailto:wrightj AT exis DOT net "Everything should be made as simple as possible, but not simpler." --Albert Einstein--