strdup

fnstring strdup(string str = null)

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

Parameters

strthe string to duplicate

Returns

a newly-allocated copy of str