int Ini_NumberOfItems (IniText handle, const char sectionName[]);
Obtains the number of items in the section identified by SectionName.
![]() |
Note If an item was split across several lines, it has several tag names entries in the .ini file, as in the following. <Tag Name> Line 0001 <Tag Name> Line 0002 <Tag Name> Line 0003 For the purposes of this function, the group of tag names counts as only one item. |
Input | ||
Name | Type | Description |
handle | IniText | A handle returned from Ini_New. It represents the list of in-memory tag/value pairs. |
sectionName | const char [] | The name of the section under which the item count is returned. |
Name | Type | Description |
numberOfItems | integer | The number of items in the section identified by sectionName. If the section does not exist, 0 is returned. |