ref: 4fe7b3c5097db6b24eef3680dec682b3d552bd64
dir: /src/libc/string/strrchr.c/
#include <string.h> #undef strrchr char * strrchr(const char *s, int c) { const char *t = s; while (*t) ++t; while (t > s && *t != c) --t; return (*t == c) ? (char *)t : NULL; }