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 test[]= {'t', 'e', 's', 't', 0};
16	wchar_t *s, buf[40];
17
18	puts("testing");
19
20	s = wcscpy(buf, test);
21	assert(s == buf);
22	assert(!wcscmp(s, test));
23
24	s = wcscpy(buf, L"");
25	assert(s == buf);
26	assert(!wcscmp(s, L""));
27
28	puts("done");
29
30	return 0;
31}