This is something that I wrote and is still under developement, but it does work.
C library to parse CGI Forms