ustrrchr(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ¦‹ NAME πŸ¦‹

okay so bestie, welcome to the Allegro manual page for ustrrchr(3) πŸ’– β€” she finds the last occurrence of a character in a string. This is from the Allegro game programming library, and yes, she ate. ✨

✨ SYNOPSIS ✨

#include <allegro.h>

char *ustrrchr(const char *s, int c);

🌸 DESCRIPTION 🌸

So picture a string s and a character c. ustrrchr finds the last occurrence of c in s. Not the first one β€” the last one. It's giving "look at the end of the story first" energy, and honestly? Obsessed. πŸ‘‘

Example, iykyk:

char *p = ustrrchr("one,two,three,four", ',');

That's the whole vibe. πŸŽ€

πŸ’… RETURN VALUE πŸ’…

If c shows up in s, you get a pointer to the last occurrence of c in s. If there's no match at all? You get NULL. No match, no pointer, no drama. 😭

πŸ”₯ SEE ALSO πŸ”₯


okay bye bestie! this page came from Allegro, version 4.4.3, and the footer date isn't printed here β€” so we're not making one up, periodt. 🫢✨

πŸ“¦ where this page comes from