al_ustr_has_prefix(3alleg5)
π 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 π
al_ustr_has_prefix_cstr(3alleg5)β the same idea but for the cstring girliesal_ustr_has_suffix(3alleg5)β the other end of the string, equally slay
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
- 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