Nilorea Library
C utilities for networking, threading, graphics
|
common function More...
#include <stdio.h>
#include <errno.h>
#include "nilorea/n_common.h"
#include "nilorea/n_config_file.h"
#include "nilorea/n_pcre.h"
Go to the source code of this file.
Functions | |
int | destroy_config_file (CONFIG_FILE **cfg_file) |
Destroy a loaded config file. More... | |
void | destroy_config_file_section (void *ptr) |
Destroy a config file section. More... | |
void | free_no_null (void *ptr) |
local free for config entries More... | |
char * | get_config_section_value (CONFIG_FILE *cfg_file, char *section_name, int section_position, char *entry, int entry_position) |
Function to parse sections and get entries values. More... | |
int | get_nb_config_file_sections (CONFIG_FILE *cfg_file, char *section_name) |
Get the number of config file with section_name. More... | |
int | get_nb_config_file_sections_entries (CONFIG_FILE *cfg_file, char *section_name, int section_position, char *entry) |
Get the number of config file with section_name. More... | |
CONFIG_FILE * | load_config_file (char *filename, int *errors) |
load a config file More... | |
int | write_config_file (CONFIG_FILE *cfg_file, char *filename) |
write a config file More... | |
void destroy_config_file_section | ( | void * | ptr | ) |
Destroy a config file section.
ptr | A pointer to a config file section |
Definition at line 33 of file n_config_file.c.
References destroy_ht(), and Free.
Referenced by load_config_file().
void free_no_null | ( | void * | ptr | ) |
local free for config entries
ptr | the ptr to free |
Definition at line 19 of file n_config_file.c.
Referenced by load_config_file().