Function

GLib-2.0GLibstrdupv

  • 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: string[] | null

      an array of strings to copy

    Returns string[] | null

    a newly-allocated array of strings. Use GLib.strfreev to free it.