Free INI data.
Parameters:
- head -
INI section data.
Reads INI data.
Parameters:
- FileName -
File to read.
- Unicode -
Whether file shoul be treated like unicode.
- result -
Pointer where file will be read.
Return: Error code
Returns pointer to last INI entry of given section.
Parameters:
- file_info -
File data as returned by INI_ReadFile.
- section -
Section to scan.
- Unicode -
Whether file is unicode.
Return: Last entry in section.
Returns value of INI file entry.
Parameters:
- file_info -
File data as returned by INI_ReadFile.
- section -
Section to scan.
- key -
Name of key to read.
- Unicode -
Whether file is unicode.
Return: Entry value.
Returns integer value from configuration. The file is automatically handled as not unicode.
Parameters:
- cfg -
File data as returned by INI_ReadFile.
- section -
Section to scan.
- key -
Name of key to read.
- fallback -
Fallback value.
Return: Key value or fallback in case of failure.
Returns boolean value from configuration. The file is automatically handled as not unicode.
Parameters:
- cfg -
File data as returned by INI_ReadFile.
- section -
Section to scan.
- key -
Name of key to read.
- fallback -
Fallback value.
Return: Key value or fallback in case of failure.
Converts value to boolean.
It just takes the string and checks whether there is true/yes/t/y/1 or false/no/f/n/0.
Parameters:
- value -
String to parse.
Return: Boolean value, -1 on failure.
typedef struct _INI_Entry INI_Entry
Private structure holding information INI entry.
typedef struct _INI_Section INI_Section
Private structure holding information INI section.
Structure used to save section in INI style file
Public Members