delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/27/05:15:32

From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: printf/getch problem
Date: Tue, 27 Jan 1998 10:56:46 +0100
Organization: University of Ghent, Belgium
Lines: 24
Message-ID: <34CDAF5E.7156@rug.ac.be>
References: <34CC5211 DOT 57270346 AT alcyone DOT com> <19980127034901 DOT WAA22568 AT ladder02 DOT news DOT aol DOT com>
NNTP-Posting-Host: eduserv1.rug.ac.be
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Myknees wrote:
> >Leon Heller wrote:
> >> Try fflush(stdout).
> >
> >Better yet, do not mix stdio and conio calls.
> >They were not meant to be
> >used at the same time.
> 
> I hear many people say that, and it makes sense on an abstract level, since
> file (or stdin / out) I/O is different from console I/O.  But no one has ever
> said what concrete bad would really come of it. 

Try to mix printf and cprintf in a program and redirect its output into
a file.
That is one example. Another (not tried yet)

printf ("nicely out of order");
cprintf ("This is printed ");
printf ("\n");

-- 
 \ Vik /-_-_-_-_-_-_/   
  \___/ Heyndrickx /          
   \ /-_-_-_-_-_-_/

- Raw text -


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