al_ustr_rfind_str(3)

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

✨ al_ustr_rfind_str(3) ✨

okay so this page lives in the Library Functions Manual, and it's serving the Allegro 5 API β€” manual name folded in near the top, no copied header line, periodt πŸ’…


πŸŽ€ NAME πŸŽ€

  • al_ustr_rfind_str β€” Allegro 5 API

🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

int al_ustr_rfind_str(const ALLEGRO_USTR *haystack, int end_pos,
   const ALLEGRO_USTR *needle)

πŸ’– DESCRIPTION πŸ’–

Bestie, this is the "find the last one before the cutoff" girlie πŸ”₯

It finds the last occurrence of the string needle in haystack before byte offset end_pos β€” and that end_pos is exclusive, so it does not include that byte πŸ‘‘

If it finds the occurrence, it returns the byte offset of the occurrence. If not? It returns -1. That's the whole vibe check πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹


source/version: the Allegro reference manual; page: al_ustr_rfind_str(3); date: not listed on this one β€” mwah πŸ’‹

πŸ“¦ 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