Function

GLibstrdupv

Declaration

gchar**
g_strdupv (
  gchar** str_array
)

Description

Copies NULL-terminated array of strings. The copy is a deep copy; the new array should be freed by first freeing each string, then the array itself. g_strfreev() does this for you. If called on a NULL value, g_strdupv() simply returns NULL.

This function is not directly available to language bindings

Parameters

str_array gchar**
 

A NULL-terminated array of strings.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: An array of utf8
 

A new NULL-terminated array of strings.

 The array is NULL-terminated.
 The data is owned by the called function.
 The return value can be NULL.
 Each element is a NUL terminated UTF-8 string.