Function

GLibbuild_filenamev

Declaration

gchar*
g_build_filenamev (
  gchar** args
)

Description

Behaves exactly like g_build_filename(), but takes the path elements as a string array, instead of varargs. This function is mainly meant for language bindings.

Available since:2.8

Parameters

args

Type: An array of filename

NULL-terminated array of strings containing the path elements.

The array must be NULL-terminated.
The data is owned by the caller of the function.
Each element is a file system path, using the OS encoding.

Return value

Type: gchar*

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 value is a file system path, using the OS encoding.