www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/26/23:06:28

From: myknees AT aol DOT com (Myknees)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: printf/getch problem
Date: 27 Jan 1998 03:49:35 GMT
Lines: 21
Message-ID: <19980127034901.WAA22568@ladder02.news.aol.com>
NNTP-Posting-Host: ladder02.news.aol.com
References: <34CC5211 DOT 57270346 AT alcyone DOT com>
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <34CC5211 DOT 57270346 AT alcyone DOT com>, Erik Max Francis <max AT alcyone DOT com>
writes:
>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.  ...printf("conio & stdio can't
get along\n"); getch();...  Will this code run slowly or become unstable or be
less portable or something?

I know this is really a C question, but I'm hankerin' to ask the djgpp people
who say this stuff what they really mean.

--Ed (Myknees)

- Raw text -


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