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[] = "abcdef";
16
17	puts("testing");
18	assert(strpbrk(buf, "a") == buf);
19	assert(strpbrk(buf, "") == NULL);
20	assert(strpbrk("", "a") == NULL);
21	assert(strpbrk("", "") == NULL);
22	assert(strpbrk(buf, "1234") == NULL);
23	assert(strpbrk(buf, "f") == buf + 5);
24	assert(strpbrk(buf, "12345a") == buf);
25	puts("done");
26
27	return 0;
28}