al_ustr_new(3alleg5)
β¨ 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 π
al_ustr_new_from_buffer(3alleg5)al_ustr_newf(3alleg5)al_ustr_dup(3alleg5)al_ustr_new_from_utf16(3alleg5)
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
- 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