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[] = {0, 1, 2, 3, 4, 160};
16
17	puts("testing");
18	assert(memchr(buf, 2, 6) == buf+2);
19	assert(memchr(buf, 2, 0) == NULL);
20	assert(memchr(buf, 150, 6) == NULL);
21	assert(memchr(buf, 160, 6) == buf+5);
22	puts("done");
23
24	return 0;
25}