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 wcscspn
 4
 5size_t
 6wcscspn(const wchar_t *s, const wchar_t *reject)
 7{
 8	wchar_t wc;
 9	const wchar_t *p;
10
11        for (p = s; (wc = *p) && !wcschr(reject, wc); p++)
12		;
13        return p - s;
14}