[cc65] gets() in infinite loop

From: Payton Byrd <plbyrd1gmail.com>
Date: 2012-06-06 03:50:28
I am having a problem that after doing a lot of file manipulation, gets()
no longer functions correctly.  I'm not using the posix file functions, but
the cbm_* stuff, so I wouldn't expect stdin to be affected.  However, it
appears that gets() is reading stdin as EOF continuously.  Is there a way
to manually reset stdin before I attempt to read the keyboard?

-- 
Payton Byrd
<http://www.paytonbyrd.com>
<http://it.toolbox.com/blogs/paytonbyrd>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Jun 6 03:51:00 2012

This archive was generated by hypermail 2.1.8 : 2012-06-06 03:51:04 CEST