www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/27/20:02:33

From: cybpunk AT geocities DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Flush stdin?
Date: Wed, 27 Oct 1999 23:41:53 GMT
Organization: Deja.com - Before you buy.
Lines: 15
Message-ID: <7v82k1$opj$1@nnrp1.deja.com>
NNTP-Posting-Host: 209.80.195.83
X-Article-Creation-Date: Wed Oct 27 23:41:53 1999 GMT
X-Http-User-Agent: Mozilla/4.61 [en] (Win95; I)
X-Http-Proxy: 1.0 x26.deja.com:80 (Squid/1.1.22) for client 209.80.195.83
X-MyDeja-Info: XMYDJUIDjohng27
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm just now progamming 'C' in DJGPP (previously c++) and I need to know
how to get around a problem.  In my 'C' class we use MS VC which will
clear the input buffer with fflush(stdin), but djgpp (I believe due to
the os) won't.  2 things I need to know.  Is there a alternative
function to do this, provided with djgpp, or should I write my own.  If
I write my own, any ideas?  The second thing I need to do is have a
#ifdef statement that will detect the djgpp compiler so I can define
flush according to the compiler building the source.

TIA
-John


Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


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