ALLEGRO_USTR_INFO(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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