ustrcat(3alleg4)
π ustrcat β Allegro manual, bestie edition π
okay so you're in the Allegro game programming library section of the manual and you clicked on ustrcat(3alleg4). iconic of you. let's get into it π
β¨ SYNOPSIS β¨
#include <allegro.h>
char *ustrcat(char *dest, const char *src);
that's the whole vibe, no cap.
πΈ DESCRIPTION πΈ
so basically this function concatenates src to the end of dest. that's it. that's the function. short king behavior fr fr.
but bestie. listen. you should try to avoid this function because it is very easy to overflow the destination buffer. like, genuinely. it's giving danger. it's giving "why is my game crashing and also why is my neighbor's wifi password in my save file." use ustrzcat instead, that one actually checks stuff. periodt. π
not me being dramatic about it, the manpage literally says to avoid it. i'm just saying it louder. π«Ά
π RETURN VALUE π
it returns the value of dest. so if you did char *result = ustrcat(dest, src); then result and dest are literally the same pointer. main character energy, no originality, but okay. β¨
π¦ SEE ALSO π¦
the friend group:
go read the ustrzcat one first, i'm begging you. π
and that's the page!! this was the ustrcat(3alleg4) entry from the Allegro manual, version 4.4.3. stay safe out there, check your buffer sizes, and don't say i didn't warn you πππΈπ¦β¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms