al_ustr_has_prefix(3alleg5)

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

πŸ’– al_ustr_has_prefix πŸ’–

okay bestie, welcome to the Allegro 5 API corner of the Allegro reference manual β€” today's main character is al_ustr_has_prefix, and she's here to answer exactly one (1) question for you πŸŽ€


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_ustr_has_prefix(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2)

like yes she's a bool, yes she takes two const ALLEGRO_USTR * args, and no she is not complicated. lowkey iconic for that πŸ’…


🌸 DESCRIPTION 🌸

Returns true iff us1 begins with us2.

that's it. that's the whole vibe. you hand her two strings, she peeks at the start of us1, and she tells you whether us2 is literally sitting right there at the front. if yes β†’ true, if no β†’ false, no drama, no notes ✨

fr fr though β€” note the "iff" (if and only if) energy. it's a clean yes-or-no, nothing in between 🫢

πŸ‘‘ SEE ALSO πŸ‘‘


and that's a wrap, bestie πŸ¦‹ this lil page lives in the Allegro reference manual, filed under al_ustr_has_prefix(3alleg5) β€” go forth and check your prefixes, periodt πŸ’œ

πŸ“¦ where this page comes from