(cflh_t HANDLE,
const char* SECTION_NAME,
const char* VALUE_NAME,
const cfl_value_type_t VALUE_TYPE,
void* VALUE )
Adds a new value into a section of a cfl handle.
Documentation
Adds a new value into a section of a cfl handle.
Adds the new value named VALUE_NAME in the section SECTION_NAME into the cfl
HANDLE. The new value will be of type VALUE_TYPE and of value VALUE.
- Parameters:
- HANDLE - The cfl handle in which the new value must go
SECTION_NAME - The name of the section in which the new value must go
VALUE_NAME - The name of the value to insert
VALUE_TYPE - The type of the value to insert
VALUE - The value of the value to insert
- Returns:
- 0 in case of success.
CFL_ERR_MALLOC in case of insufficient memory.
CFL_ERR_SECTION_NOT_EXISTS if the SECTION_NAME does not exists.
CFL_ERR_VALUE_EXISTS if the VALUE_NAME already exists in the section.
- Preconditions:
- HANDLE must be a valid cfl handle
- See Also:
- cfl_value_remove()
Alphabetic index
f