scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <string.h>
 2
 3#undef strrchr
 4
 5char *
 6strrchr(const char *s, int c)
 7{
 8	const char *t;
 9
10	for (t = s; *t; ++t)
11		;
12	while (t > s && *t != c)
13		--t;
14
15	return (*t == c) ? (char *) t : NULL;
16}