//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[]);