Function

GLibbuild_filename_valist

Declaration

gchar*
g_build_filename_valist (
  const gchar* first_element,
  va_list* args
)

Description

Behaves exactly like g_build_filename(), but takes the path elements as a va_list. This function is mainly meant for language bindings.

Available since:2.56

Parameters

first_element const gchar*
 

The first element in the path.

 The data is owned by the caller of the function.
 The string is a file system path, using the OS encoding.
args va_list*
 

Va_list of remaining elements in path.

 The data is owned by the caller of the function.

Return value

Returns: filename
 

A newly-allocated string that must be freed with g_free().

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a file system path, using the OS encoding.