al_ustr_rfind_str(3alleg5)

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

πŸ’– NAME πŸ’–

okay so welcome to the group chat, bestie πŸ’… this is the manual page for al_ustr_rfind_str, and it's part of the Allegro 5 API. The manual name is al_ustr_rfind_str(3alleg5), and we're pulling from the Allegro reference manual. no cap.


✨ SYNOPSIS ✨

              #include <allegro5/allegro.h>

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

🌸 DESCRIPTION 🌸

Find the last occurrence of string needle in haystack before byte offset end_pos (exclusive). Return the byte offset of the occurrence if it is found, otherwise return -1.

literally it's giving "search for the final match, but stop before end_pos." The end_pos boundary is exclusive, so that byte offset itself is not included in the search zone. If your needle shows up, you get the byte offset of that occurrence. If it doesn't? You get -1. periodt. 🫢


πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ this page is from the Allegro reference manual, page al_ustr_rfind_str(3alleg5), and the footer didn't give a date, so no date energy here. stay iconic ✨

πŸ“¦ where this page comes from