From 5f50ddc00a48bb14122164a6c3b514ba8b09a321 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 14 Mar 2024 15:40:12 -0400 Subject: Replace ini_show with ini_write * One can still display the ini configuration by using ini_show(iniptr, stdout); --- include/ini.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/ini.h') diff --git a/include/ini.h b/include/ini.h index 1391555..41692b6 100644 --- a/include/ini.h +++ b/include/ini.h @@ -168,10 +168,12 @@ struct INIData *ini_getall(struct INIFILE *ini, char *section_name); int ini_getval(struct INIFILE *ini, char *section_name, char *key, int type, union INIVal *result); /** - * Print INIFILE sections and data + * Write INIFILE sections and data to a file stream * @param ini pointer to INIFILE + * @param file pointer to address of file stream + * @return 0 on success, -1 on error */ -void ini_show(struct INIFILE *ini); +int ini_write(struct INIFILE *ini, FILE **stream); /** * Free memory allocated by ini_open() -- cgit