On 7/30/2013 10:57 PM, Chicken McNuggets wrote:
> I'm pretty up to speed with C but I still feel there are areas that I
> make mistakes in my design and implementation. Would anyone recommend
> the best book that deals with these kinds of issues? Obviously I already
> have K&R, and the C11 standard document for reference but I was looking
> for something a bit more focused on how to avoid common mistakes or
> anti-patterns.
Andrew Koenig's "C Traps and Pitfalls" is worth a lukewarm
recommendation. "Lukewarm" for two reasons:
- First and more important, it's aimed at people making the
transition from pre-Standard to ANSI C, and is nowadays
rather dated.
- Second and less important, it goes out of its way to say
that the printf() specifier "%8%" is well-defined (even in
the original ANSI Standard it was a constraint violation).
--
Eric Sosman
eso...@comcast-dot-net.invalid