al_ustr_find_cstr(3alleg5)
π al_ustr_find_cstr π
okay bestie, welcome to the al_ustr_find_cstr page, straight outta the Allegro 5 API manual (that's the 3alleg5 manual btw, iykyk) β¨
πΈ NAME πΈ
al_ustr_find_cstr β it's giving Allegro 5 API π
β¨ SYNOPSIS β¨
lowkey the whole vibe is right here:
#include <allegro5/allegro.h>
int al_ustr_find_cstr(const ALLEGRO_USTR *haystack, int start_pos,
const char *needle)
no cap, that's the entire signature. copy it exactly, don't freestyle it π
π¦ DESCRIPTION π¦
so here's the tea π β this one is exactly like al_ustr_find_str(3alleg5), okay?? same energy, same behavior, no plot twists. the one difference is that it takes a C-style string for needle instead. that's it. that's the whole thing. iconic, honestly π
so you're searching through your haystack (an ALLEGRO_USTR *, obviously) starting at start_pos, hunting for that needle β except your needle is a plain old const char *, not an ALLEGRO_USTR *. slay π
π SEE ALSO π
the rest of the friend group, go say hi:
al_ustr_find_str(3alleg5)β the sibling that wants anALLEGRO_USTRneedle insteadal_ustr_rfind_cstr(3alleg5)β sameconst char *needle vibe, but it searches from the back π«Ά
not me dropping the entire al_ustr search squad on you like a group chat notification π go read them, fr fr
and that's a wrap, bestie π this was the Allegro reference manual's page for al_ustr_find_cstr(3alleg5) β go forth and find your strings, main character ππ
π¦ 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