int iniparser_set(dictionary *ini, const char *entry, const char *val)
Set an entry in a dictionary.
char * iniparser_getstring(dictionary *d, const char *key, char *def)
Get the string associated to a key.
void iniparser_unset(dictionary *ini, const char *entry)
Delete an entry in a dictionary.
dictionary * iniparser_load(const char *ininame)
Parse an ini file and return an allocated dictionary object.
double iniparser_getdouble(dictionary *d, const char *key, double notfound)
Get the string associated to a key, convert to a double.
int iniparser_getboolean(dictionary *d, const char *key, int notfound)
Get the string associated to a key, convert to a boolean.
void iniparser_dump(dictionary *d, FILE *f)
Dump a dictionary to an opened file pointer.
char * iniparser_getsecname(dictionary *d, int n)
Get name for section n in a dictionary.
void iniparser_dumpsection_ini(dictionary *d, char *s, FILE *f)
Save a dictionary section to a loadable ini file.
int iniparser_find_entry(dictionary *ini, const char *entry)
Finds out if a given entry exists in a dictionary.
int iniparser_getsecnkeys(dictionary *d, char *s)
Get the number of keys in a section of a dictionary.
int iniparser_getnsec(dictionary *d)
Get number of sections in a dictionary.
char ** iniparser_getseckeys(dictionary *d, char *s)
Get the number of keys in a section of a dictionary.
void iniparser_dump_ini(dictionary *d, FILE *f)
Save a dictionary to a loadable ini file.
void iniparser_freedict(dictionary *d)
Free all memory associated to an ini dictionary.
int iniparser_getint(dictionary *d, const char *key, int notfound)
Get the string associated to a key, convert to an int.
Implements a dictionary for string variables.