For a small C program I’m writing to sync two LDAP directories with eachother (no, OpenLDAP’s syncRepl or slurpd won’t do the trick this time), I need some C functions to parse a configuration file. Instead of writing my own, I’ve found a nice small library of functions to do that for me. The functions are supplied under an MIT free license and can be integrated into your own projects. Check out Nicolas Devillard’s iniParser, a stand-alone ini Parser library in ANSI C.