if(line[0] == '#') continue;
int load_map_config(char *file){    FILE *f = NULL;    int i, j = 0, m = 0;    char line[512];    char buf[512];    char error[256];        if(!(f = fopen(file, "r")))    {          sprintf(error, "No such file: %s", file);                       log_info(error);          return 0;    }        /*****************************/    /* Format :                  */    /* name x,y,id               */    /*****************************/    while (fgets(line, 512, f)) {          for(i = 0; line[i] != ' ' && line[i] != '\n' && line[i] != '\0'; i++) {                bot_map.map[bot_map.loaded_maps].name[i] = line[i];          }          bot_map.map[bot_map.loaded_maps].name[i] = '\0';          i++;          for(j = 0; line[i] != ',' && line[i] != '\n' && line[i] != '\0'; j++) {                buf[j] = line[i++];          }          buf[j] = '\0';          bot_map.map[bot_map.loaded_maps].x = atoi(buf);          i++;          for(j = 0; line[i] != ',' && line[i] != '\n' && line[i] != '\0'; j++) {                buf[j] = line[i++];          }          buf[j] = '\0';          bot_map.map[bot_map.loaded_maps].y = atoi(buf);          i++;          for(j = 0; line[i] != '\n' && line[i] != '\0'; j++) {                buf[j] = line[i++];          }          buf[j] = '\0';          bot_map.map[bot_map.loaded_maps].id = atoi(buf);          bot_map.loaded_maps++;    }        fclose(f);}