strrchr.c (191B)
1 #include <string.h> 2 3 #undef strrchr 4 5 char * 6 strrchr(const char *s, int c) 7 { 8 const char *t = s; 9 10 while (*t) 11 ++t; 12 while (t > s && *t != c) 13 --t; 14 15 return (*t == c) ? (char *) t : NULL; 16 }
sccsimple c99 compiler | |
git clone git://git.simple-cc.org/scc | |
Log | Files | Refs | Submodules | README | LICENSE |