Function

GLibprintf_string_upper_bound

Declaration

gsize
g_printf_string_upper_bound (
  const gchar* format,
  va_list args
)

Description

Calculates the maximum space needed to store the output of the sprintf() function.

This function is not directly available to language bindings

Parameters

format

Type: const gchar*

The format string. See the printf() documentation.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
args

Type: va_list

The parameters to be inserted into the format string.

Return value

Type: gsize

The maximum space needed to store the formatted string.