Str.strdup

Duplicates a string. If str is NULL it returns NULL. The returned string should be freed with g_free() when no longer needed.

class Str
static
string
strdup
(
string str
)

Parameters

str string

the string to duplicate

Return Value

Type: string

a newly-allocated copy of str

Meta