libcmutils 0.6.5
Multi-platform C99 utility library
Loading...
Searching...
No Matches
Configuration files.

Data Structures

struct  CMUTIL_Config
 Configuration management object. More...
 

Functions

CMUTIL_ConfigCMUTIL_ConfigCreate (void)
 Create a new empty configuration object.
 
CMUTIL_ConfigCMUTIL_ConfigLoad (const char *fconf)
 Load a configuration from a file.
 

Detailed Description

Function Documentation

◆ CMUTIL_ConfigCreate()

CMUTIL_Config * CMUTIL_ConfigCreate ( void  )

Create a new empty configuration object.

Returns
A pointer to the newly created CMUTIL_Config object, or NULL on failure.

◆ CMUTIL_ConfigLoad()

CMUTIL_Config * CMUTIL_ConfigLoad ( const char *  fconf)

Load a configuration from a file.

Parameters
fconfThe file path of the configuration file to load.
Returns
A pointer to the loaded CMUTIL_Config object, or NULL on failure.