getcwd(work_dir, sizeof(work_dir));
printf("working directory: %s\n", work_dir);
- set_config_value(work_dir,
- "dev_cfg.txt",
+ set_config_value_to_section(work_dir,
+ "dev_cfg_txt",
"mysection_type",
"mysection_name",
"myoption_name",
- "my_option_value");
- set_config_value(work_dir,
- "dev_cfg.txt",
+ "my_option_value",
+ false);
+ set_config_value_to_section(work_dir,
+ "dev_cfg_txt",
"mysection_type",
"mysection_name",
"myoption_name",
- "my_option_value2");
+ "my_option_value3",
+ true);
}
int main(int argc, char** argv) {