read config files into struct

This commit is contained in:
Chris Cromer
2016-10-13 17:19:59 -03:00
parent 0261e3c863
commit 17f620f919
4 changed files with 93 additions and 34 deletions

View File

@@ -1,2 +1,12 @@
struct configuration {
xmlChar *file;
xmlChar *bible;
xmlChar *book;
xmlChar *chapter;
xmlChar *chapter_numbers;
} typedef CONFIG;
CONFIG *config;
void cleanup();
void printusage(int error);
char *output_file = "";

View File

@@ -1 +1 @@
int readconfig(char *config_file);
int readconfig(char *config_file, CONFIG *config);