Ini_SectionExists
- Updated2023-02-21
- 1 minute(s) read
int Ini_SectionExists (IniText handle, const char sectionName[]);
Purpose
Determines if the section specified by sectionName exists in the list of tag/value pairs specified by handle.
Parameters
| 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, the existence of which is determined. |
Return Value
| Name | Type | Description |
| sectionExists | int | Indicates if the section specified by sectionName exists in the list of tag/value pairs specified by handle. If the section exists, a 1 is returned. If the section does not exist, a 0 is returned. |
Additional Information
Library: Reading/Writing .ini-Style Files
Include file: toolbox\inifile.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later
Example
Refer to toolbox\ini.cws for an example of using the Ini_SectionExists function.