Re: Convert float to gchar *
- From: iain <iain prettypeople org>
- To: Laurent Houdusse <l houdusse free fr>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Convert float to gchar *
- Date: Sat, 11 Oct 2003 16:52:14 +0100
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]