From 53efcd835d256b4f84efb59e7aef2c5b88cc317c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 5 Jun 2003 22:54:55 +0000 Subject: [PATCH] Add g_vasprintf(). 2003-06-06 Matthias Clasen * glib/glib-sections.txt: Add g_vasprintf(). * glib/tmpl/string_utils.sgml: Add a hint about g_vasprintf() to the g_strdup_printf() docs. --- docs/reference/ChangeLog | 7 +++++++ docs/reference/glib/glib-sections.txt | 1 + docs/reference/glib/tmpl/string_utils.sgml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 480aa9614..890efa97d 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,10 @@ +2003-06-06 Matthias Clasen + + * glib/glib-sections.txt: Add g_vasprintf(). + + * glib/tmpl/string_utils.sgml: Add a hint about g_vasprintf() to + the g_strdup_printf() docs. + 2003-05-28 Matthias Clasen * glib/tmpl/string_utils.sgml: Document that g_strdup() and diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt index c3837c9af..d7674afb8 100644 --- a/docs/reference/glib/glib-sections.txt +++ b/docs/reference/glib/glib-sections.txt @@ -904,6 +904,7 @@ g_sprintf g_vsprintf g_snprintf g_vsnprintf +g_vasprintf g_printf_string_upper_bound diff --git a/docs/reference/glib/tmpl/string_utils.sgml b/docs/reference/glib/tmpl/string_utils.sgml index 2778f4d00..99ae34fc5 100644 --- a/docs/reference/glib/tmpl/string_utils.sgml +++ b/docs/reference/glib/tmpl/string_utils.sgml @@ -181,6 +181,10 @@ but safer, since it calculates the maximum space required and allocates memory to hold the result. The returned string should be freed when no longer needed. + +See also g_vasprintf(), which offers the same functionality, but additionally +returns the length of the allocated string. + @format: the standard sprintf() format string. @args: the list of parameters to insert into the format string.