#include "config_file.h"
Functions | |
key_value_pair_t * | config_file_read (char *filename, int *loaded_pairs) |
Reads the requested filename and returns the key-value pairs from within. | |
int | config_file_write (char *filename, key_value_pair_t *pairs, int pairs_to_write) |
Writes the key-value pairs to filename. | |
char * | config_file_get_value (key_value_pair_t *pairs, char *key, int pairs_loaded) |
Searches pairs for key and returns the value of that key. | |
void | config_file_destroy (key_value_pair_t *pairs, int pairs_loaded) |
This function frees all of the memory that has been allocated with config_file_read(). |