3 ms·
Make sure you have a good understanding of the standard library - in C, this should not be thought of as a black box (because, unlike in some languages, it is w
by tacostakohashi 10y ago
Make sure you have a good understanding of the standard library - in C, this should not be thought of as a black box (because, unlike in some languages, it is written in the language itself, and also it's rather small and minimal).
You should familiarize yourself with the source for a C standard library (not necessarily the one your're using, maybe uclibc, something simple), and work towards being able to implement the functions yourself. For some functions like malloc(), printf(), etc, understanding the implementation tradeoffs will help you understand problems with your own code.
- meekins 10y agoAs someone who has only casually dabbled in C I found "C: A Reference Manual" [1] a great companion to the "Expert C Programming" book. The typography is dull but the content is excellent - all the details about the language standard and libraries are there while remaining concise enough to serve as a reference book. [1] http://careferencemanual.com/ http://careferencemanual.com/