mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-14 00:23:47 +02:00
gprintf: Clarify error behaviour of g_vasprintf() in docs
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
d6ad10404f
commit
aa4385c1d9
@ -295,7 +295,8 @@ g_vsnprintf (gchar *string,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_vasprintf:
|
* g_vasprintf:
|
||||||
* @string: (not optional) (nullable): the return location for the newly-allocated string.
|
* @string: (not optional) (nullable): the return location for the newly-allocated string,
|
||||||
|
* which will be %NULL if (and only if) this function fails
|
||||||
* @format: (not nullable): a standard printf() format string, but notice
|
* @format: (not nullable): a standard printf() format string, but notice
|
||||||
* [string precision pitfalls][string-precision]
|
* [string precision pitfalls][string-precision]
|
||||||
* @args: the list of arguments to insert in the output.
|
* @args: the list of arguments to insert in the output.
|
||||||
@ -312,7 +313,7 @@ g_vsnprintf (gchar *string,
|
|||||||
*
|
*
|
||||||
* `glib/gprintf.h` must be explicitly included in order to use this function.
|
* `glib/gprintf.h` must be explicitly included in order to use this function.
|
||||||
*
|
*
|
||||||
* Returns: the number of bytes printed.
|
* Returns: the number of bytes printed, or `-1` on failure
|
||||||
*
|
*
|
||||||
* Since: 2.4
|
* Since: 2.4
|
||||||
**/
|
**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user