Creates a copy of a string and returns a pointer to the new copy.
#include <utf8.h> utf8_t *utf8dup ( const utf8_t *s);
(IN) Points to the string to duplicate.
If successful, returns a pointer to the new copy of the string; otherwise, returns a NULL pointer and sets errno to the following:
The memory for the new string is obtained by using the malloc function and can be freed using the free function.