DoneEx INI-File Manager Library  API Help

  UpdateINI

The function UpdateINI saves data from the memory structure to the disk file.

				
int UpdateINI(long  ini_file_num,   
               char* ini_file_name  
);				

Parameters
ini_file_num
[input] INI-file number which points to the data in memory structure. This number has to be saved from the return value of the previous call CreateINI or LoadINI functions.
ini_file_name
[input] Pointer to a null-terminated string that names the file to be saved.

Return Values
If the function succeeds, it returns zero. If the function fails, the return value is not equal zero.

Remark
An application may save the same data from the memory structure into the different disk files. For the purpose of this an application need to call UpdateINI function several times with one value of the ini_file_num parameter and different values of the ini_file_name parameter.