strdup

fnstring strdup(string str = null) nothrow

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

Parameters

strthe string to duplicate

Returns

a newly-allocated copy of str