al_cstr

const char *al_cstr(const ALLEGRO_USTR *us)
Introduced in 5.0.0

Get a char * pointer to the data in a string. This pointer will only be valid while the underlying string is not modified and not destroyed. The pointer may be passed to functions expecting C-style strings, with the following caveats:

See also: al_ustr_to_buffer, al_cstr_dup

Examples: ex_logo, ex_utf8


Most helpful discussions:

Other recent discussions: