al_cstr man page

al_cstr — Allegro 5 API


#include <allegro5/allegro.h>

const char *al_cstr(const ALLEGRO_USTR *us)


Get a char * pointer to the data in a string. This pointer will only be valid while the ALLEGRO_USTR(3) object 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(3), al_cstr_dup(3)

Referenced By

al_cstr_dup(3), al_ustr_newf(3), al_ustr_to_buffer(3).

Allegro reference manual