Ask HN: Examples of especially well-written C code?

https://news.ycombinator.com/item?id=1680928
by dlowe • 16 years ago
21 16 16 years ago

In light of the recent OpenSSL rant (http://news.ycombinator.com/item?id=1680337): what are some open source projects written in C which are particularly well-written?

I can give one example: I was very pleasantly surprised by the experience of cold-reading the BerkeleyDB source (trying to explain some very odd observed behavior) a few years ago. The code was laid out in a sensible way, such that I could find what I needed reasonably quickly. It was generally clear and straightforward to read, and the few places with "tricky" code were very nicely commented -- including the source of the odd behavior I was hunting for.

Are there other examples of great, readable C code out there?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com