ini_parse - simple C ini parser without context
#include "ini.h"
typedef int ini_section_cb_t(char *, void *);
typedef int ini_property_cb_t(char *, char *, void *);
int ini_parse(int fd, ini_section_cb_t *sec_cb ,ini_property_cb_t *prop_cb , void *data);
ini_parse is a simple C ini parser function without context.
It reads and parses data from file descriptor fd. Then it calls back either sec_cb function when a section is met or prop_cb when a property is met.
test-ini.c is a good example of how to use the ini_parse function.
Written by Vivien DIDELOT vivien.didelot@savoirfairelinux.com and Gaël PORTAY gael.portay@savoirfairelinux.com
Copyright (c) 2017 Vivien DIDELOT and Gaël PORTAY
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.