strdup


Description:

public string strdup (string str)

Duplicates a string.

If str is null it returns null. The returned string should be freed with g_free when no longer needed.

Parameters:

str

the string to duplicate

Returns:

a newly-allocated copy of str


Namespace: GLib
Package: glib-2.0



2022 vala-language.org