al_cstr_dup(3)
π¦ al_cstr_dup(3) β bestie edition π¦
okay so welcome to the Library Functions Manual side of the Allegro 5 universe π this page is all about al_cstr_dup, and itβs lowkey a tiny string-copying icon. no cap.
β¨ NAME β¨
al_cstr_dup β Allegro 5 API
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
char *al_cstr_dup(const ALLEGRO_USTR *us)
π DESCRIPTION π
okay so al_cstr_dup makes a NUL ('\0') terminated copy of the string. π
and yes bestie, any embedded NUL bytes will still be presented in the returned string β no sneaky dropping, fr fr. π
the new string must eventually be freed with al_free(3) β thatβs a must, not a maybe, okay? π«Ά
if an error occurs, NULL is returned. thatβs the signal. π
π SEE ALSO π
go give these a lil look, iykyk:
xoxo, from the Allegro reference manual π β page al_cstr_dup(3), no date listed on this cutie. π¦β¨
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms