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