Re: HELP! String problem in GTK+
- From: Ronald Bultje <rbultje ronald bitfreak net>
- To: Terry Ha <onslaught hkguy com>
- Cc: gtk-list gnome org
- Subject: Re: HELP! String problem in GTK+
- Date: Mon, 19 Feb 2001 18:52:12 +0100
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 : rbultje ronald bitfreak net |
-- /( )\ | WWW : http://ronald.bitfreak.net/ |
-- ^^-^^ | *** Warning: Unix Addicted *** |
---------------------------------------------------'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]