Ask HN: Best book to learn C in 2022?
Over the years, I have acquired most of what people call seminal C books, and after reading them, I recommend the following two books to people who already know programming:<p>Peter A. Darnell and Philip E. Margolis 
C - A Software Engineering Approach (3rd ed.)
<a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Software-Engineering-Approach-Peter-Darnell&#x2F;dp&#x2F;0387946756" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Software-Engineering-Approach-Peter-D...</a><p>David Hanson
C Interfaces and Implementations: Techniques for Creating Reusable Software (!st ed.)
<a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Interfaces-Implementations-Techniques-Creating-Reusable&#x2F;dp&#x2F;0201498413" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Interfaces-Implementations-Techniques...</a><p>The first is clearly written and focuses on ANSI C (lexis, syntax and semantics), with a healthy dose of software engineering education along the way, which you may already have. (It does not yet cover the latest ISO changes.)<p>The second book is a true gem that teaches even seasoned programmers how to implement correct, clean and portable components as libraries in ISO C, with plenty of source code to show how the true masters of the language craft the finest code you can in C.
    Most books how fragments of linked list implementations, but only this book shows complete a whole range of important ADTs you cannot live without (e.g. List, Ring, Atom) in C portably, with strong typing, bullet-proof error handling etc. (Hanson is also the author of lcc, a portable C compiler.)<p>I&#x27;m actually surprised that these are both are so little known, and that the second one hasn&#x27;t seen more editions.