ref: 07094f38b49ec4f867ea7cd8f5d453940e48951c
dir: /libc/src/strrchr.c/
/* See LICENSE file for copyright and license details. */ #include <string.h> char * strrchr(const char *s, int c) { char *t; for (t = (char *) s; *t; ++t) /* nothing */; while (t > s && *t != c) --t; return (*t == c) ? t : NULL; }