al_ustr_has_suffix(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– al_ustr_has_suffix(3) β€” Allegro 5 API, bestie edition πŸ’–

okay so imagine you've got two strings and you just need to know if one of them is ending with the other, like a little suffix vibe check ✨ that's literally this function. it lives in the Allegro 5 API, and it's giving "quietly iconic utility function" πŸŽ€


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

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

so you pull in allegro5/allegro.h and then you can call al_ustr_has_suffix, which takes two const ALLEGRO_USTR * pointers β€” us1 and us2 πŸ’… β€” and hands you back a bool.


🌸 DESCRIPTION 🌸

Returns true iff us1 ends with us2. periodt. πŸ’€

like... that's the whole thing. us1 is your main character string, us2 is the ending you're checking for β€” and if us1 finishes off with exactly us2 at the end, you get true back πŸ”₯ otherwise it's false, no cap.

bestie note: it says iff β€” that's "if and only if" β€” so true happens exactly when us1 ends with us2, and not a single other time 🫢

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, bestie! πŸ’œ this one came straight out of the Allegro reference manual, dated the same as always β€” so go forth and check your suffixes, you've got this πŸ‘‘βœ¨

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms