Re: gint to gchar: g_sprintf
- From: Sukrit K Mehra <holysmoke amaltaas biz>
- To: <gtk-app-devel-list gnome org>
- Subject: Re: gint to gchar: g_sprintf
- Date: Sun, 21 Dec 2003 00:48:04 +0530
On Friday 19 December 2003 17:14, martyn 2 russell bt com wrote:
gint a = 10;
gchar *str = NULL;
str = g_strdup_printf("%d", a);
/* use the str */
g_message("my new string is: '%s'", str);
/* clean up */
g_free(str);
This does it. Thanks.
--
Sukrit K Mehra
Email: sukrit mehra amaltaas biz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]