上次说了iniparser在windows上一些注意的问题,其实用的最多的还是API,一下列出
- int iniparser_getnsec(dictionary * d);
- char * iniparser_getsecname(dictionary * d, int n);
- void iniparser_dump_ini(dictionary * d, FILE * f);
- void iniparser_dumpsection_ini(dictionary * d, char * s, FILE * f);
- void iniparser_dump(dictionary * d, FILE * f);
- int iniparser_getsecnkeys(dictionary * d, char * s);
- char ** iniparser_getseckeys(dictionary * d, char * s);
- char * iniparser_getstring(dictionary * d, const char * key, char * def);
- int iniparser_getint(dictionary * d, const char * key, int notfound);
- double iniparser_getdouble(dictionary * d, const char * key, double notfound);
- int iniparser_getboolean(dictionary * d, const char * key, int notfound);
- int iniparser_set(dictionary * ini, const char * entry, const char * val);
- void iniparser_unset(dictionary * ini, const char * entry);
- int iniparser_find_entry(dictionary * ini, const char * entry) ;
- dictionary * iniparser_load(const char * ininame);
- void iniparser_freedict(dictionary * d);
- unsigned dictionary_hash(const char * key);
- dictionary * dictionary_new(int size);
- void dictionary_del(dictionary * vd);
- char * dictionary_get(dictionary * d, const char * key, char * def);
- int dictionary_set(dictionary * vd, const char * key, const char * val);
- void dictionary_unset(dictionary * d, const char * key);
- void dictionary_dump(dictionary * d, FILE * out);