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[40];
16	wchar_t abc[] = {'a', 'b', 'c', '\0'};
17
18	puts("testing");
19	assert(!wmemcmp(wmemcpy(buf, abc, 3), abc, 3));
20	assert(wmemcpy(buf, abc, 0) == buf);
21	puts("done");
22
23	return 0;
24}