DoneEx INI-File Manager Library  API Help

  GetSectionCount

The GetSectionCount function returns number of sections in INI-file.

				
long GetSectionCount(long ini_file_num);

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.

Return Values
If succeed the GetSectionCount function returns a number of sections in an INI-file. Otherwise it returns 0.

Remark
INI-file memory model consists at least one section. Because the first unnamed section present always.