ALLEGRO_USTR_INFO(3alleg5)
β¨ ALLEGRO_USTR_INFO β¨
okay bestie so you're in the Allegro 5 API docs, section 3alleg5, and today's main character is ALLEGRO_USTR_INFO π she's a typedef, she's mysterious, she holds secrets (well, info) π«Ά
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
typedef struct _al_tagbstring ALLEGRO_USTR_INFO;
like. look at her. a whole alias for struct _al_tagbstring π
no cap.
π¦ DESCRIPTION π¦
so ALLEGRO_USTR_INFO is a type that holds extra info for an ALLEGRO_USTR (that's ALLEGRO_USTR(3alleg5) bestie, go read her page) when that USTR is referencing an external memory buffer π like she's not carrying her own string data, she's pointing at somebody else's.
and the way that you can convert it right back into an ALLEGRO_USTR (ALLEGRO_USTR(3alleg5), yes, her again π) is via al_ref_info(3alleg5). iconic. reversible. we love a round trip π
π SEE ALSO π
go read those, fr fr. they're the whole reference squad π
Allegro reference manual π β that's where this lil page lives, and it's filed under ALLEGRO_USTR_INFO(3alleg5), so if you ever need to find her again you know exactly where to look π
β¨ mwah, bye bestie π¦
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms