aboutsummaryrefslogtreecommitdiff
path: root/.boilerplates/c/src/main.c
blob: 10ea27935093aa3cf2a4edb63c5a2873b3c248fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void print_help()
{
	printf("Help\n");
	exit(1);
}

int main(int argc, char *argv[])
{
	if (argc == 2 && (strcmp(argv[1], "--help") == 0))
		print_help();

	printf("Hello, world!\n");
	return 0;
}