al_ustr_find_chr(3)

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

πŸŽ€ al_ustr_find_chr(3) πŸŽ€

okay so this page is from the Library Functions Manual (yes bestie, that's the manual name), and we're talking about the Allegro 5 API. Stay with me, it's a short one and it slays.


πŸ’– NAME πŸ’–

al_ustr_find_chr β€” Allegro 5 API. That's the whole name situation, no cap.

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

int al_ustr_find_chr(const ALLEGRO_USTR *us, int start_pos, int32_t c)

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it do? It searches for the encoding of code point c inside us, starting from the byte offset start_pos β€” and yes, that starting point is inclusive, so start_pos itself is invited to the party.

It returns the position where it is found, or -1 if it is not found. That's it. That's the whole vibe check. 🫢

bestie reminder: those are the exact facts β€” search from start_pos inclusive, return the found position or -1.

🌈 SEE ALSO 🌈


okay that's the page, bestie β€” brought to you by the Allegro reference manual πŸ’… and there's no date printed in the footer, so this sign-off is just pure, undated sparkle βœ¨πŸŽ€πŸ¦‹

πŸ“¦ 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