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#include <wchar.h>
 5
 6/*
 7output:
 8testing
 9done
10end:
11*/
12
13void
14tests_mbsinit(void)
15{
16	mbstate_t s;
17
18	assert(mbsinit(NULL) != 0);
19	assert(mbsinit(memset(&s, 0, sizeof(s))) != 0);
20}
21
22int
23main()
24{
25	puts("testing");
26	tests_mbsinit();
27	puts("done");
28	return 0;
29}