aboutsummaryrefslogtreecommitdiff
path: root/test/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/main.c')
-rw-r--r--test/main.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/main.c b/test/main.c
new file mode 100644
index 0000000..479c5fa
--- /dev/null
+++ b/test/main.c
@@ -0,0 +1,22 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+void properties_load(FILE *file);
+
+int
+main(int argc, char **argv)
+{
+ FILE *file;
+
+ for (int i = 1; i < argc; i++) {
+ if (strcmp(argv[i], "-f") == 0 && (i + 1) < argc) {
+ file = fopen(argv[i + 1], "r");
+ break;
+ }
+ }
+
+ properties_load(file);
+
+ return EXIT_SUCCESS;
+}