Function in stdx_ini.h

x_ini_key_count

Get the number of keys in a section.

X_INI_API int x_ini_key_count(
 const XIni *ini,
 int section_index
);

Parameters

const XIni *ini
Parsed INI data.
int section_index
Zero-based section index.

Returns

Number of keys in the section.

Function in stdx_ini.h

x_ini_key_name

Get the name of a key by section and key index.

X_INI_API const char * x_ini_key_name(
 const XIni *ini,
 int section_index,
 int key_index
);

Parameters

const XIni *ini
Parsed INI data.
int section_index
Zero-based section index.
int key_index
Zero-based key index within the section.

Returns

Key name string.

Function in stdx_ini.h

x_ini_section_count

Get the number of sections in the INI data.

X_INI_API int x_ini_section_count(const XIni *ini);

Parameters

const XIni *ini
Parsed INI data.

Returns

Number of sections.

Function in stdx_ini.h

x_ini_section_name

Get the name of a section by index.

X_INI_API const char * x_ini_section_name(
 const XIni *ini,
 int section_index
);

Parameters

const XIni *ini
Parsed INI data.
int section_index
Zero-based section index.

Returns

Section name string.

Function in stdx_ini.h

x_ini_value_at

Get the value of a key by section and key index.

X_INI_API const char * x_ini_value_at(
 const XIni *ini,
 int section_index,
 int key_index
);

Parameters

const XIni *ini
Parsed INI data.
int section_index
Zero-based section index.
int key_index
Zero-based key index within the section.

Returns

Value string at the specified position.