News for hackers. Stuff that matters.
Re:Ask HN: Examples of especially well-written C code? by nkurz on Saturday September 11, 2010 @04:03AM (#1681184)
In the past, I've found the code for SQLite to be brilliantly clear: http://sqlite.org

Going further, I'd suggest that most large successful projects in C have clear code that is worthy of study. It's some corollary of the anthropic principle --- if the code wasn't clear, it would never have survived to become successful.

This may only apply to the core of these projects (written by experts) than to the periphery (written by learners). But you might be surprised by how readable the central code is for Apache, Linux, Glibc, Mysql, Perl, Python, etc.

Re:Ask HN: Examples of especially well-written C code? by GeneralMaximus on Saturday September 11, 2010 @09:02AM (#1681485)
I second SQLite. They even have the entire source concatenated into a single file, which means you don't have to use ctags (or equivalent) for jumping around the project.