[aclug-L] Re: c problems float to string
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
should be pretty easy done by sprintf();
int sprintf(char *str, const char *format, ...);
#define S_LEN 10
printf ("\ns is %s\n", s);
--- oceano <nathan@xxxxxxxxxxxxxxxx> wrote:
> I'm designing a GUI using GTK+ and C via gcc. I
> have hit a snag in not
> being able to convert a float value to a character
> string. There are
> simple functions to go from string or character to
> float which I use but
> not the other way around? Can anyone help or will I
> have to suffer?
> I would like to convert say, 123.0 to a string
> -- This is the discussion@xxxxxxxxx list. To
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
-- This is the discussion@xxxxxxxxx list. To unsubscribe,