Re: [cc65] Get user input? Floating point?

From: Groepaz <groepaz1gmx.net>
Date: 2004-09-25 16:41:00
On Saturday 25 September 2004 16:25, Raj Wurttemberg wrote:
> 
> Hey Uz,
> 
> > To input a number and check for correct input:
> >         char buf [40];
> >         int number;
> >         printf ("Input a number: "); fflush (stdout);
> >         fgets (buf, sizeof (buf), stdin);
> 
> What about inputting a floating point number? I found an atoi() function,
> but no atof(). Actually I don't see any floating point functions. It's not
> really that big of a deal if floating point stuff isn't in there... I don't
> have a real use for it, it's just in my book as I learn. :)

there is no floating point stuff (yet) :)

gpz

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Sep 25 16:42:05 2004

This archive was generated by hypermail 2.1.8 : 2004-09-25 16:42:14 CEST