Duplicates a string. If str is NULL it returns NULL.
the string to duplicate
a newly-allocated copy of str
Duplicates a string. If str is NULL it returns NULL.