al_ustr_get_next(3)
π al_ustr_get_next(3) π
okay so bestie, this is the al_ustr_get_next(3) page from the Library Functions Manual, and it's part of the Allegro 5 API. It's a tiny one, but it's lowkey important. Let's go. β¨
πΈ NAME πΈ
al_ustr_get_next β Allegro 5 API
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
int32_t al_ustr_get_next(const ALLEGRO_USTR *us, int *pos)
π DESCRIPTION π
Okay so what this icon does: it finds the code point in us that begins at the byte offset *pos, and then it advances to the next code point. Literally βget this one, then scoot forward.β π«Ά
Here's the return tea, bestie:
- On success, it returns the code point value. Slay. π
- If
poswas out of bounds (like, past the end of the string), it returns-1. - On an error, such as an invalid byte sequence, it returns
-2. - As with
al_ustr_next(3), invalid byte sequences may be skipped while advancing. That's the caveat β don't forget it. π
π₯ SEE ALSO π₯
kisses bestie π β source: Allegro reference manual; version/date: this footer doesn't print a version or date, so consider this your cute undated sign-off. The page title is al_ustr_get_next(3). π
π¦ 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