Declaration [src]

g_strdupv (
  gchar** str_array

Description [src]

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.


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 string is a NUL terminated UTF-8 string.

Return value

Returns: An array of utf8

A new NULL-terminated array of strings.

 The data is owned by the called function.
 The return value can be NULL.