ref: afec1bc0e0ba8999c706adf6438cd74d18715a88 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) ? t : NULL; }