X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Tue, 20 Jul 2004 07:36:52 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <7494-Tue20Jul2004073651+0300-eliz@gnu.org> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <2m3hjoFibqajU1@uni-berlin.de> (fbarbuto2002 DOT no AT w1 DOT ca DOT vip DOT scd DOT yahoo DOT com) Subject: Re: Function kbhit()? References: <2m3hjoFibqajU1 AT uni-berlin DOT de> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Fausto Arinos de A. Barbuto" > Newsgroups: comp.os.msdos.djgpp > Date: Mon, 19 Jul 2004 21:24:39 -0600 > > I am porting an old C code to GCC. It works very well with Borland C 3.1 > and although it compiles and runs with gcc, it doesn't work as intended. > After much tinkering with the code, I found out that the problem is in a > statement that contains the kbhit() function. GCC didn't complain about > it during compilation though, hence I assume that kbhit() exists in GCC > -- it is I who can't use it properly. Any hints? Your help will be very much > appreciated. Yes, DJGPP does have kbhit. But without seeing the code and knowing what exactly do you mean by ``doesn't work as intended'' it is hard to tell what is wrong.