Function

GLib-2.0GLibstrdup

  • Duplicates a string. If str is NULL it returns NULL.

    Parameters

    • Optionalstr: string

      the string to duplicate

    Returns string

    a newly-allocated copy of str