From bc85d7da5ba240410d60b87a71bf56326f88162c Mon Sep 17 00:00:00 2001 From: Jonathan Santis Date: Mon, 16 Sep 2024 13:10:54 +0200 Subject: [PATCH] end of day --- config.c | 54 +++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 17 deletions(-) diff --git a/config.c b/config.c index 9734649..7972a2a 100644 --- a/config.c +++ b/config.c @@ -13,24 +13,44 @@ int loadConfig(char *str_file, char **str_entry,int size) f_config = fopen(str_file,"r"); if(f_config != NULL) { - if(fgets(temp_str,256,f_config)!=NULL) + while(fgets(temp_str,256,f_config)!=NULL) { - if - - for(i=0;i