al_ustr_has_suffix_cstr(3alleg5)

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

πŸ’– 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 β€” meaning true exactly when us1 ends with s2, and false otherwise. 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 ✨


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