x_ini_remove
Remove a key from the INI data.
X_INI_API bool x_ini_remove(
XIni *ini,
const char *section,
const char *key
);
Parameters
XIni *ini
- Parsed INI data.
const char *section
- Section name.
const char *key
- Key name.
Returns
True if the key was removed, false if it was not found or arguments are invalid.
x_ini_remove_section
Remove a section and all of its keys from the INI data.
X_INI_API bool x_ini_remove_section(
XIni *ini,
const char *section
);
Parameters
XIni *ini
- Parsed INI data.
const char *section
- Section name.
Returns
True if the section was removed, false if it was not found or arguments are invalid.
x_ini_set
Set a string value in the INI data.
X_INI_API bool x_ini_set(
XIni *ini,
const char *section,
const char *key,
const char *value
);
Parameters
XIni *ini
- Parsed INI data.
const char *section
- Section name.
const char *key
- Key name.
const char *value
- Value string.
Returns
True on success, false on failure.
x_ini_set_bool
Set a boolean value in the INI data.
X_INI_API bool x_ini_set_bool(
XIni *ini,
const char *section,
const char *key,
bool value
);
Parameters
XIni *ini
- Parsed INI data.
const char *section
- Section name.
const char *key
- Key name.
bool value
- Boolean value.
Returns
True on success, false on failure.
x_ini_set_f32
Set a 32-bit floating-point value in the INI data.
X_INI_API bool x_ini_set_f32(
XIni *ini,
const char *section,
const char *key,
float value
);
Parameters
XIni *ini
- Parsed INI data.
const char *section
- Section name.
const char *key
- Key name.
float value
- Floating-point value.
Returns
True on success, false on failure.
x_ini_set_i32
Set a 32-bit integer value in the INI data.
X_INI_API bool x_ini_set_i32(
XIni *ini,
const char *section,
const char *key,
int32_t value
);
Parameters
XIni *ini
- Parsed INI data.
const char *section
- Section name.
const char *key
- Key name.
int32_t value
- Integer value.
Returns
True on success, false on failure.
x_ini_set_u32
Set an unsigned 32-bit integer value in the INI data.
X_INI_API bool x_ini_set_u32(
XIni *ini,
const char *section,
const char *key,
uint32_t value
);
Parameters
XIni *ini
- Parsed INI data.
const char *section
- Section name.
const char *key
- Key name.
uint32_t value
- Integer value.
Returns
True on success, false on failure.
x_ini_set_u32_hex
Set an unsigned 32-bit integer value in hexadecimal form in the INI data.
X_INI_API bool x_ini_set_u32_hex(
XIni *ini,
const char *section,
const char *key,
uint32_t value
);
Parameters
XIni *ini
- Parsed INI data.
const char *section
- Section name.
const char *key
- Key name.
uint32_t value
- Integer value.
Returns
True on success, false on failure.