al_ref_info(3alleg5)
β¨ al_ref_info β¨
okay bestie, welcome to the Allegro 5 API corner of the Allegro reference manual π this one is short and sweet, so let's go π«Ά
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
const ALLEGRO_USTR *al_ref_info(const ALLEGRO_USTR_INFO *info)
π¦ DESCRIPTION π¦
So what this does is: it makes you a read-only string that just references the storage of another ALLEGRO_USTR(3alleg5) string β specifically one you already stashed inside an ALLEGRO_USTR_INFO(3alleg5) structure. no copying, no new memory, just vibes and a pointer β¨
bestie. listen. this string is only valid until the underlying string gets modified or destroyed π so like, don't be out here holding onto it forever. it's giving "borrowed", not "yours". once the real one changes or goes poof, your reference is done. periodt.
π SEE ALSO π
and that's the whole page, bestie π slay π this was al_ref_info(3alleg5) from the Allegro reference manual β go forth and reference responsibly ππ
π¦ 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