Writing and reading config files.
More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
|
|
void | configInit (void) |
| | Init the config path.
|
| |
|
void | configDestroy (void) |
| | Clean up config stuff.
|
| |
| char * | configRead (const char *entry) |
| | Read config file.
|
| |
| void | configWrite (const char *entry, const char *data) |
| | Write to config file.
|
| |
|
void | configDefaults (void) |
| | Create default config.
|
| |
|
|
char * | configFile = NULL |
| | Config file path stored here.
|
| |
Writing and reading config files.
◆ configRead()
| char * configRead |
( |
const char * | entry | ) |
|
Read config file.
- Parameters
-
| entry | Entry to read from config file |
- Returns
- Contents of the entry in the config file
◆ configWrite()
| void configWrite |
( |
const char * | entry, |
|
|
const char * | data ) |
Write to config file.
- Parameters
-
| entry | Entry to write to |
| data | What to put in the entry |