Good C (not C++) code for reading/learning?
SwellJoe: SQLite is always recommended in threads like this (of which, I will point out, there have been several here and at reddit...you might like to search for them).  I haven't looked at it since very early releases, but I'm guessing quality has gotten better over time, since it is more stable than ever and faster than ever, and still astoundingly lightweight.