al_ustr_get(3alleg5)
π NAME π
al_ustr_get - Allegro 5 API π
This is the al_ustr_get(3alleg5) page, bestie. It's giving "grab one code point at a byte offset, slay."
β¨ SYNOPSIS β¨
Okay so first you bring in the header:
#include <allegro5/allegro.h>
int32_t al_ustr_get(const ALLEGRO_USTR *ub, int pos)
π DESCRIPTION π
Return the code point in ub beginning at byte offset pos. So you're basically like, "hey ub, what code point starts at byte offset pos?" and it tells you. π
On success returns the code point value. If pos was out of bounds (e.g. past the end of the string), return -1. On an error, such as an invalid byte sequence, return -2.
π¨ Bestie, keep those returns straight:-1=poswas out of bounds, like past the end of the string.-2= an error, such as an invalid byte sequence. No guessing, no cap. π«Ά
π SEE ALSO π
π Source/version check: this page is from the Allegro reference manual, page al_ustr_get(3alleg5). That's the whole footer vibe, periodt. π¦
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms