You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
301 B

//no dynamic growth use these to set your limits
#define LINEBUFF 4096 //how many bytes per fgets()
#define MAXLINE 20 //how many lines you want to parse max
//struct with options
typedef struct options{
char name[LINEBUFF];
char setting[LINEBUFF];
}options;
options *read_cfg(char filename[]);