al_ustr_get(3)
π al_ustr_get(3) π
okay so real talk, bestie: we're in the Library Functions Manual, and this little icon lives in the Allegro 5 API. it's giving βsmall function, very specific jobβ energy, and honestly? we respect it.
πΈ NAME πΈ
al_ustr_getβ Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
int32_t al_ustr_get(const ALLEGRO_USTR *ub, int pos)
π¦ DESCRIPTION π¦
this one returns the code point in ub that begins at byte offset pos. literally just βgimme the code point starting at this byte offset,β no cap.
- On success, it returns the code point value. slay. β¨
- If
poswas out of bounds β like, past the end of the string, bestie β it returns-1. π - On an error, such as an invalid byte sequence, it returns
-2. not the vibe, but now you know. π
π SEE ALSO π
big kiss from the Allegro reference manual footer, bestie π«Ά that's the source/version line, and this page didn't print a date, so no invented date from me π
π¦ 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