al_ustr_append_chr(3)
π al_ustr_append_chr(3) β the Allegro 5 API one π
okay so bestie, this is a page from the Allegro 5 API manual β yes, the whole <allegro5/...> fam β and it's literally one function long. tiny page, big slay π
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
size_t al_ustr_append_chr(ALLEGRO_USTR *us, int32_t c)
that's it. that's the whole vibe check. π¦
πΈ DESCRIPTION πΈ
so what it does is: it appends a code point to the end of us. like, you got your ALLEGRO_USTR *us hanging out, and this function justβ¦ sticks c on the end of it. one code point. that's the whole job. π
and the return value? it returns the number of bytes added β β¨ bytes β¨, not characters, important distinction bestie, a code point is not always one byte, iykyk β or 0 on error. so if you get a 0 back, something went wrong and you should probably look at that. π
ngl it is genuinely that simple. no hidden options, no gotchas listed here. sometimes the manual page is just short and sweet and that's iconic of it.
π₯ SEE ALSO π₯
al_ustr_append(3)β the bigger, more general sibling. go say hi. π«Ά
and that's the whole page, bestie! π§ source: the Allegro reference manual, and the page itself is al_ustr_append_chr(3) in case you forgot already (no judgement, I literally just told you). mwah πβ¨π
π¦ 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