al_ustr_find_set(3alleg5)
β¨ NAME β¨
al_ustr_find_set β Allegro 5 API π
okay so real talk, this is a page straight out of the Allegro reference manual, and it's about one very specific lil' string-hunting function. stay with me bestie, it's short and it slays.
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
int al_ustr_find_set(const ALLEGRO_USTR *us, int start_pos, const ALLEGRO_USTR *accept)
π¦ DESCRIPTION π¦
So here's the vibe. al_ustr_find_set goes looking through us, starting at the byte offset start_pos, hunting for the first code point that shows up in accept too. Like, accept is the guest list and us is the crowd β this function finds the first person in the crowd who's actually on the list. π
If it finds one, you get the position back. If nobody on the list shows up? You get -1. That's it. That's the whole function. no cap.
heads up:start_posis a byte offset, andacceptis a wholeALLEGRO_USTRyou're matching any of its code points against β not the whole string. π
π SEE ALSO π
and that's the whole page, bestie π«Ά this was al_ustr_find_set(3alleg5) from the Allegro reference manual, mwah π go find your set, you've got this β¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms