#define CFG_ARGS 10 #define CFG_STRLEN 100 #ifndef PREFIX #define PREFIX "/usr/local" #endif #define CFG_RCFILE PREFIX "/etc/juke.conf" struct CFG_FORMAT { int args; int match_len; char *arg_list[CFG_ARGS]; char strings[CFG_STRLEN]; }; struct CONFIG { char *file; int file_len; int line_pos; int line_end; int arg_pos; int formats; struct CFG_FORMAT *format; }; void config_load (struct CONFIG *cfg);