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 🧚✨