Declaration [src]

g_build_pathv (
  const gchar* separator,
  gchar** args

Description [src]

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

Available since:2.8


separator const gchar*

A string used to separator the elements of the path.

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

NULL-terminated array of strings containing the path elements.

 The data is owned by the caller of the function.

Return value

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