ref: 66b39b58b8cda3e3c3a86c23401cad0e670a3432
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; }