ustrrchr(3)
π¦ 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms