Re: [cc65] gets() in infinite loop

From: Groepaz <groepaz1gmx.net>
Date: 2012-06-07 11:51:30
On Thursday 07 June 2012, you wrote:
> From: "Payton Byrd"; on Tuesday, June 05, 2012; at 09:50 PM-0400
> 
> > ....  However, it appears that gets() is reading stdin as EOF
> > continuously.  Is there a way to reset stdin manually before I
> > attempt to read the keyboard?
> 
> Use clearerr().

i would advice to completely avoid stdio and use cbm_ and conio functions - 
that will work better and most likely result in a smaller binary too.

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

People can be divided into three groups: Those who make things happen, those 
who watch things happen, and those who wonder what happened. 
<John W. Newbern>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jun 7 11:51:41 2012

This archive was generated by hypermail 2.1.8 : 2012-06-07 11:51:44 CEST