#include #include #include "inifile.h" bool ini_callback(char* section, bool newsection, char* name, char* value) { if (newsection) puts("New Section!"); printf("Section: %s Name: %s Value: %s\n", section, name, value); return true; } int main() { if (!inifile_read("testini.ini", ini_callback)) puts("Read error!"); return 0; }