al_ustr_has_suffix_cstr(3alleg5)
π al_ustr_has_suffix_cstr π
okay bestie, welcome to the Allegro 5 API corner of the Allegro reference manual (section 3, the "library functions" zone, iykyk) π
β¨ NAME β¨
al_ustr_has_suffix_cstr β it's giving Allegro 5 API, and it's giving "does this string end with that other string" π¦
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_ustr_has_suffix_cstr(const ALLEGRO_USTR *us1, const char *s2)
no cap, that's the whole vibe. two args, one bool coming back at you π
β¨ DESCRIPTION β¨
Returns true iff us1 ends with s2.
that's it. that's the function. so simple, so iconic π
heads up bestie: it's an iff situation β meaningtrueexactly whenus1ends withs2, andfalseotherwise. no in-between, no maybe, periodt π
the way that us1 is a const ALLEGRO_USTR * and s2 is a plain old const char *... one fancy Allegro string, one regular C string, and they get compared at the tail end π
β¨ SEE ALSO β¨
al_ustr_has_suffix(3alleg5)β same energy, but the other argument is a proper Allegro string πal_ustr_has_prefix_cstr(3alleg5)β the front-of-the-string twin, if you're more of a "beginning" girlie πΈ
and that's a wrap, bestie! this page lives in the Allegro reference manual β that's the source and the version vibe right there β so go forth, check your suffixes, and slay π β¨π«Ά
π¦ 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