DoneEx INI-File Manager Library  API Help

  SearchSection

The function SearchSection looks for section index by section name.

				
long SearchSection(long ini_file_num,
                   const char* sect_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.
sect_name
[input] Pointer to a null-terminated string that names section for search.

Return Values
If succeed the SearchSection function returns number of sections. Otherwise it returns 0.

Remark
All section names store in memory with trimmed lead and finished spaces.