summaryrefslogtreecommitdiff
path: root/example/main.c
blob: 56fbb694480bc82b104a3c4df41a4a76c2d2ac0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

#include "hello.h"

int
main(int argc, char **argv)
{
	int i;

	printf("Hello World!\n");
	if (argc == 1) {
		hello_showgtk(argc, argv);
	} else {
		for (i = 1; i < argc; i++)
			hello_showargs(argv + 1, argc - 1);
	}
}