Copies the bytes from a string into a
destroying any previous contents. It is rather like
strcpy() function, except that you do not
have to worry about having enough space to copy the string.
The string to copy into
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
|The data is owned by the instance.|