[glib] One forgotten moved doc
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] One forgotten moved doc
- Date: Sun, 2 Oct 2011 03:39:34 +0000 (UTC)
commit ed325b18798f29ce1efbc5377056c0e07cfe4175
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 1 23:38:52 2011 -0400
One forgotten moved doc
glib/gmessages.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index e865035..7a30d97 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -1210,9 +1210,19 @@ g_printerr (const gchar *format,
g_free (string);
}
+/**
+ * g_printf_string_upper_bound:
+ * @format: the format string. See the printf() documentation
+ * @args: the parameters to be inserted into the format string
+ *
+ * Calculates the maximum space needed to store the output
+ * of the sprintf() function.
+ *
+ * Returns: the maximum space needed to store the formatted string
+ */
gsize
g_printf_string_upper_bound (const gchar *format,
- va_list args)
+ va_list args)
{
gchar c;
return _g_vsnprintf (&c, 1, format, args) + 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]