From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: printf question Date: Sat, 05 Jul 1997 14:51:45 -0400 Organization: Cornell University http://www.cornell.edu Lines: 21 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <33BE97C1.4ADB@cornell.edu> References: <5plnp1$h0g$1 AT news DOT sas DOT ab DOT ca> Reply-To: asu1 AT cornell DOT edu NNTP-Posting-Host: cu-dialup-0002.cit.cornell.edu 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 kalyniuk AT freenet DOT edmonton DOT ab DOT ca wrote: > > Can anyone explain to me why printf() wont immediately print to the screen > after calling clrscr(), unless I use fflush(stdout) first? It works fine > without the fflush() on my Borland compiler. > stdio functions are buffered. you should not mix them with conio functions. for more detail on this, you can take a look at the C FAQ or search the mail archives for this newsgroup. -- Sinan ******************************************************************* A. Sinan Unur WWWWWW |--O+O mailto:sinan DOT unur AT cornell DOT edu C ^ http://www.people.cornell.edu/pages/asu1/ \ ~/ Unsolicited e-mail is _not_ welcome, and will be billed for. *******************************************************************