RE: gchar to char
- From: "Esquibel, Rick" <Rick Esquibel ARZ Boeing com>
- To: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: RE: gchar to char
- Date: Thu, 16 Nov 2000 10:52:12 -0700
While gchar is defined as a char, I've run into this problem as well.
However, I've cast the gchar to a char to "fix:" the problem. For example:
gchar cf[3] = {"100"};
float ff = 0.0;
ff = atof((const char *)cf);
As a result: ff = 100.0.
Hope this helps, good luck...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]