DoneEx INI-File Manager Library  API Help

  AddSection

The AddSection function add new section into .INI file structure in memory.

				
int AddSection(const long  ini_file_num, 
               const char *section_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.
section_name
[input] Pointer to a null-terminated string that specifies the new section name.

Return Values
If succeed the AddSection function returns zero. Otherwise it returns value not equal to zero. To get extended error information, call GetLastErr.

Remark
The function AddSection adds new section at the end of file.