al_ustr_find_chr(3)
π 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 fromstart_posinclusive, return the found position or-1.
π SEE ALSO π
al_ustr_rfind_chr(3)β the other search bestie, go say hi.
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