Function in stdx_ini.h

x_ini_get

Retrieve a string value from the INI data.

X_INI_API const char * x_ini_get(
 const XIni *ini,
 const char *section,
 const char *key,
 const char *def_value
);

Parameters

const XIni *ini
Parsed INI data.
const char *section
Section name.
const char *key
Key name.
const char *def_value
Default value returned if the key is not found.

Returns

Pointer to the value string, or def_value if not found.

Function in stdx_ini.h

x_ini_get_bool

Retrieve a boolean value from the INI data.

X_INI_API bool x_ini_get_bool(
 const XIni *ini,
 const char *section,
 const char *key,
 bool def_value
);

Parameters

const XIni *ini
Parsed INI data.
const char *section
Section name.
const char *key
Key name.
bool def_value
Default value returned if the key is not found or cannot be parsed.

Returns

Parsed boolean value, or def_value on failure.

Function in stdx_ini.h

x_ini_get_f32

Retrieve a 32-bit floating-point value from the INI data.

X_INI_API float x_ini_get_f32(
 const XIni *ini,
 const char *section,
 const char *key,
 float def_value
);

Parameters

const XIni *ini
Parsed INI data.
const char *section
Section name.
const char *key
Key name.
float def_value
Default value returned if the key is not found or cannot be parsed.

Returns

Parsed floating-point value, or def_value on failure.

Function in stdx_ini.h

x_ini_get_i32

Retrieve a 32-bit integer value from the INI data.

X_INI_API int32_t x_ini_get_i32(
 const XIni *ini,
 const char *section,
 const char *key,
 int32_t def_value
);

Parameters

const XIni *ini
Parsed INI data.
const char *section
Section name.
const char *key
Key name.
int32_t def_value
Default value returned if the key is not found or cannot be parsed.

Returns

Parsed integer value, or def_value on failure.

Function in stdx_ini.h

x_ini_get_u32

Retrieve an unsigne 32-bit integer value from the INI data.

X_INI_API uint32_t x_ini_get_u32(
 const XIni *ini,
 const char *section,
 const char *key,
 uint32_t def_value
);

Parameters

const XIni *ini
Parsed INI data.
const char *section
Section name.
const char *key
Key name.
uint32_t def_value
Default value returned if the key is not found or cannot be parsed.

Returns

Parsed integer value, or def_value on failure.