al_cstr_dup(3alleg5)

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

✨ 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