al_ustr_new(3alleg5)

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

✨ NAME ✨

al_ustr_new β€” it's giving brand new Allegro 5 string energy πŸ’– (and yeah bestie, this page lives in section 3alleg5 of the Allegro manual, so that's the whole vibe)


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

ALLEGRO_USTR *al_ustr_new(const char *s)

πŸŽ€ DESCRIPTION πŸŽ€

okay so basically?? you hand it a plain ol' C-style string s, and it hands you back a shiny new string that's a copy of it. a whole copy. its own little string. iconic behavior honestly πŸ¦‹

⚠️ bestie listen. this string does not free itself. it is not a girl who cleans up after herself. you must eventually free it with al_ustr_free(3alleg5). no cap. if you don't, that memory is just... gone. leaked. floating in the void. πŸ’€

πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, bestie 🫢 this one came straight outta the Allegro reference manual, filed under al_ustr_new(3alleg5) β€” go forth and free your strings, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from