al_cstr_dup(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ¦‹ 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