al_ustr_to_buffer

void al_ustr_to_buffer(const ALLEGRO_USTR *us, char *buffer, int size)
Introduced in 5.0.0

Write the contents of the string into a pre-allocated buffer of the given size in bytes. The result will always be 0-terminated.

See also: al_cstr, al_cstr_dup

Examples: ex_utf8


Most helpful discussions: