al_ustr_get(3)

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

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