al_cstr_dup
char *al_cstr_dup(const ALLEGRO_USTR *us)
Introduced in 5.0.0
Create a NUL ('\0') terminated copy of the string. Any embedded NUL bytes will still be presented in the returned string. The new string must eventually be freed with al_free. If an error occurs NULL is returned.
See also: al_cstr, al_ustr_to_buffer
Examples: ex_utf8
Most helpful discussions: