On 2001.02.14 11:42:15 +0100 Terry Ha wrote:
> Dear sir,
>
> I would like to ask a question about GTK+, because I can't find any
> answer in most web site.
>
> I want to change a interger (gint) to string, I try to use "itoa", but it
> is fail.
> Do you have any method to do that?
>
> Best Regards,
> Terry Ha
I had this same problem for a long time. I now use something like this:
char temp_char[10];
int temp_int;
temp_int = 20;
sprintf(temp_char, "%i", temp_char);
printf(tempchar);
You can, of course, quickly make your own local itoa-function from here...
Ronald
--
---------------------------------------------------.
-- .-. | Ronald Bultje |
-- /V\ | Running: Linux 2.4.1 and OpenBSD 2.8 |
-- // \\ | E-mail : [EMAIL PROTECTED] |
-- /( )\ | WWW : http://ronald.bitfreak.net/ |
-- ^^-^^ | *** Warning: Unix Addicted *** |
---------------------------------------------------'
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list