Re: [cc65] scanf ?

Date view Thread view Subject view

From: Ullrich von Bassewitz (
Date: 2001-02-26 11:25:11

On Sun, Feb 25, 2001 at 10:40:45PM -0500, troy silvey wrote:
> Is there a good recomend substitute method for
> inputing integer data from the user given the libs
> supported with CC65? I am working with gets()
> with mixed results. I want to be able to input
> ints like 36, 259, 1950 .... I learned with scanf, but
> I don't know other ways yet.

For the debugger module, I've written some small routines to input hex numbers
and strings. You may modify it to suit your needs. Unlike scanf, it does not
accept any illegal input characters. Have a look at the dbg.c module in the
library source. The functions are named Input and InputHex.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.

Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:39 CET