al_cstr_dup(3alleg5)
β¨ NAME β¨
al_cstr_dup - Allegro 5 API
okay so bestie, this is the Allegro 5 manual page for al_cstr_dup(3alleg5), and she is literally the copy-paste queen of C strings π
. Manual name folded in, no cap.
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
char *al_cstr_dup(const ALLEGRO_USTR *us)
That's the whole entrance. Slay.
π DESCRIPTION π
Okay so what this icon does: it creates a NUL ('\0') terminated copy of the string. Yes bestie, a whole duplicate, main character energy only β¨.
And the way that any embedded NUL bytes? They will still be presented in the returned string. So if your string has sneaky little '\0's inside, they are still in the copy, fr fr. Don't expect it to stop at the first one.
The new string must eventually be freed with al_free(3alleg5). That part is not optional, bestie β the manual says must, so we listen π.
If an error occurs NULL is returned. That's the vibe check: error equals NULL, periodt.
π¦ SEE ALSO π¦
Go read these next if you wanna be extra iconic. iykyk π
That's the tea from the Allegro reference manual, al_cstr_dup(3alleg5) edition π«Ά. No date on this page, just vibes and the manual footer energy. Byeee bestie πβ¨
π¦ 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