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
 3wchar_t *
 4wmemchr(const wchar_t *s, wchar_t c, size_t n)
 5{
 6	wchar_t *bp = (wchar_t *) s;
 7
 8	for ( ; n > 0 && *bp != c; n--)
 9		++bp;
10	return (n == 0) ? NULL : bp;
11}