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 buf[40];
16	size_t n;
17
18	puts("testing");
19
20	assert(strxfrm(buf, "test", 40) == 4);
21	assert(strxfrm(buf, "", 0) == 0);
22	assert(strxfrm(NULL, "abc", 0) > 0);
23
24	puts("done");
25
26	return 0;
27}