summaryrefslogtreecommitdiffstats
path: root/src/main.c
blob: 64d8e3df7af682dd02b8f81f19a665efd7d16348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <stdlib.h>
#include "game.h"

int
main(int argc, char *argv[])
{
	char **games;
	int    n;
	int    i;

	n = db_games_find(&games);
	printf("%d games:\n", n);
	for (i = 0; i < n; ++i) {
		printf("\t%s\n", games[i]);
		free(games[i]);
	}
	free(games);
	return EXIT_SUCCESS;
}