Function

GLibprintf_string_upper_bound

since: 2.0

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.

Available since: 2.0

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.