Re: [gtk-list] newbie: Gint to string ?



hihihi wrote:

> gint new_val; 
> gtk_label_set_text(GTK_LABEL(label),new_val);
> How can i make a string from a gint ???

I found something that seems to work :

sprintf(buf,"%i",new_val);
gtk_label_set_text(GTK_LABEL(label),buf);

Is this the best way to do it ??

-- 
My webserver http://hihihi.penguinpowered.com
My home page at my provider http://www.casema.net/~hihihi



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