ustrzncat(3alleg4)
π NAME π
ustrzncat β concatenates a string to another one, specifying size. It's part of the Allegro game programming library, bestie. π
β¨ SYNOPSIS β¨
#include <allegro.h>
char *ustrzncat(char *dest, int size, const char *src, int n);
π¦ DESCRIPTION π¦
okay so picture ustrzcat() but with boundaries, and honestly? boundaries are iconic. π
This function is like ustrzcat() except that no more than n characters from src are appended to the end of dest.
And here's the tea π: if the terminating null character in src is reached before n characters have been written, the null character is copied β but no other characters are written. She stops there, periodt.
ngl the one thing you can fully trust here: dest is guaranteed to be null-terminated. no cap. π«Ά
π RETURN VALUE π
The return value is the value of dest. That's it, that's the whole vibe. β
πΈ SEE ALSO πΈ
mwah π this page is from the Allegro manual, version 4.4.3, and yes she ate. go write some strings, bestie, you've got this π§β¨
π¦ 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