Re: g_printf
- From: John Vetterli <jvetterli linux ca>
- To: GTK Application Developers' Mailing List <gtk-app-devel-list gnome org>
- Subject: Re: g_printf
- Date: Tue, 13 Jul 2004 22:47:46 -0400 (EDT)
On Wed, 14 Jul 2004, Maciej Katafiasz wrote:
Well, there's supposed to be g_printf() too, and <glib.h> should include
<glib/gprintf.h>. Seems like bug, please report in bugzilla if you're
sure it's not your fault. If not, investigate your distro / source /
build method, whatever may have changed the headers. For now, you should
be able to workaround it by adding #include <glib/gprintf.h> manually.
From the online docs:
http://developer.gnome.org/doc/API/2.0/glib/glib-String-Utility-Functions.html
"Note that the functions g_printf(), g_fprintf(), g_sprintf(),
g_snprintf(), g_vprintf(), g_vfprintf(), g_vsprintf() and g_vsnprintf()
are declared in the header gprintf.h which is not included in glib.h
(otherwise using glib.h would drag in stdio.h), so you'll have to
explicitly include <glib/gprintf.h> in order to use the GLib printf()
functions."
Also note that g_print differs from g_printf in that you can use
g_set_print_handler to send the output from g_print somewhere other than
stdout.
JV
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]