refStringNew

fnstring refStringNew(string str)

Creates a new reference counted string and copies the contents of str into it.

Parameters

stra NUL-terminated string

Returns

the newly created reference counted string