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

From: Raj Wurttemberg <rajw1c64.us>
Date: 2004-09-25 16:25:44
 
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. :)

Thanks,
/*Raj*/
 

----------------------------------------------------------------------
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:25:46 2004

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