summaryrefslogtreecommitdiff
path: root/support/regression/qct/0108-callvararg.c
blob: d12d16127b578f27822a1c6ff9673119a828a51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

int strcmp(const char *s1, const char *s2);
int snprintf(char *str, int size, const char *format, ...);

int
main()
{
	char buf[128];
	
	snprintf(buf, sizeof(buf), "hello %s", "world!");
	
	if (strcmp("hello world!", buf) != 0)
		return 1;

	return 0;
}