strdup


Description:

public string strdup (string str)

Duplicates a string.

If str is `NULL` it returns `NULL`.

Parameters:

str

the string to duplicate

Returns:

a newly-allocated copy of str


Namespace: GLib
Package: glib-2.0