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