strdupv


Description:

[ CCode ( array_length = false , array_null_terminated = true ) ]
public string[] strdupv (string[] str_array)

Copies an array of strings.

The copy is a deep copy; each string is also copied.

If called on a `NULL` value, `g_strdupv()` simply returns `NULL`.

Parameters:

str_array

an array of strings to copy

Returns:

a newly-allocated array of strings. Use [func@GLib.strfreev] to free it.


Namespace: GLib
Package: glib-2.0