Re: Convert float to gchar *



On Sat, 2003-10-11 at 15:04, Laurent Houdusse wrote:

      fNbFps = oDw3D.GetNbFps();

Wow, that is the greatest line of code I've ever seen.
But, what you want is g_strdup_printf.

char *title;

title = g_strdup_printf ("%f", fNbFps);
gtk_window_set_title (GTK_WINDOW (oWindow), title);
g_free (title);

iain
-- 
"Miss Celine Dion sings lovesongs while our cities burn"




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