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