al_ustr_get_next(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’… 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 pos was 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