Allocate and duplicate a string.
string to duplicate (or NULL).
a pointer to newly allocated memory initialized to string s, or NULL if either out of memory or if s is NULL.
Replacement for the standard strdup() such that mi_free() can be used on the returned result.
See Implementation
Allocate and duplicate a string.