inih is a simple .INI file parser written in C, released under the New BSD license (see LICENSE.txt). Go to the project home page for more info: http://code.google.com/p/inih/