#include #include #include"read_cfg.h" int main(){ char file[]="test.cfg"; options *option; option=read_cfg(file); //returns pointer to struct with options printf(option[1].name);printf("\n"); printf(option[1].setting);printf("\n"); printf(option[2].name);printf("\n"); printf(option[2].setting);printf("\n"); free(option); //freeing memory that got alloced in the function read_cfg return 0; }