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 <string.h>
 4
 5/*
 6output:
 7testing
 8done
 9end:
10*/
11
12int
13main()
14{
15	char *s, buf[40];
16
17	puts("testing");
18
19	s = strcpy(buf, "test");
20	assert(s == buf);
21	assert(!strcmp(s, "test"));
22
23	s = strcpy(buf, "");
24	assert(s == buf);
25	assert(!strcmp(s, ""));
26
27	puts("done");
28
29	return 0;
30}