Libkpass is a C implementation to access KeePass 1.x format password databases
http://libkpass.sourceforge.net/