al_ustr_find_cstr(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

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


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