scc

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

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

 1#include <assert.h>
 2#include <stdio.h>
 3#include <wchar.h>
 4
 5/*
 6output:
 7testing
 8done
 9end:
10*/
11
12int
13main()
14{
15	wchar_t buf[] = L"abcdef";
16
17	puts("testing");
18	assert(wcspbrk(buf, L"a") == buf);
19	assert(wcspbrk(buf, L"") == NULL);
20	assert(wcspbrk(L"", L"a") == NULL);
21	assert(wcspbrk(L"", L"") == NULL);
22	assert(wcspbrk(buf, L"1234") == NULL);
23	assert(wcspbrk(buf, L"f") == buf + 5);
24	assert(wcspbrk(buf, L"12345a") == buf);
25	puts("done");
26
27	return 0;
28}