gprintf: Fix documentation regarding <glib/gprintf.h>

g_snprintf() and g_vsnprintf() declarations were moved and
don't require gprintf.h to be included anymore but g_vasprintf()
is and requires gprintf.h to be explicitly included.

https://bugzilla.gnome.org/show_bug.cgi?id=760716
This commit is contained in:
Martin Blanchard 2016-01-16 15:56:09 +01:00 committed by Philip Withnall
parent 85680f4a06
commit c443adeffb

View File

@ -64,7 +64,7 @@
* duplicating, and manipulating strings. * duplicating, and manipulating strings.
* *
* Note that the functions g_printf(), g_fprintf(), g_sprintf(), * Note that the functions g_printf(), g_fprintf(), g_sprintf(),
* g_snprintf(), g_vprintf(), g_vfprintf(), g_vsprintf() and g_vsnprintf() * g_vprintf(), g_vfprintf(), g_vsprintf() and g_vasprintf()
* are declared in the header `gprintf.h` which is not included in `glib.h` * 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 * (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 * explicitly include `<glib/gprintf.h>` in order to use the GLib