1#include <string.h>23#undef strrchr45char *6strrchr(const char *s, int c)7{8 const char *t;910 for (t = s; *t; ++t)11 ;12 while (t > s && *t != c)13 --t;1415 return (*t == c) ? (char *) t : NULL;16}
A fork of https://git.simple-cc.org/scc/ for Qute
git clone https://git.8pit.net/scc.git
1#include <string.h>23#undef strrchr45char *6strrchr(const char *s, int c)7{8 const char *t;910 for (t = s; *t; ++t)11 ;12 while (t > s && *t != c)13 --t;1415 return (*t == c) ? (char *) t : NULL;16}