scc

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

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

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