Re: gchar too char



"jones" <jones iabg de> writes:

> I have been trying to use atof() on a gchar and it  dose not work, I think I
> need to cast/convert it in the a normal char. can anyone help?

>From glib.h

typedef char   gchar;

There is no difference between gchar and char at all. No conversion
is needed. Something else must be going wrong with your call to atof()
unrelated to GLib.

Regards,
                                        Owen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]