Nor are many of these subtleties well explained in the Rationale that accompanies the ANSI C Standard.
It is not the primary purpose of a standard to educate implementors. These subtleties are not always addressed in the C Standard proper. To satisfy these ambitions, an implementor must provide for them. To benefit from these ambitions, a user should be aware of numerous subtleties. And it pioneers in supporting code that adapts to varied cultures, including those with very large character sets. It imposes fairly strict requirements on the robustness and precision of its mathematical functions. It promises well-defined name C library spaces for both user and implementor. It provides considerable Standard power in many different environments. the The Standard C library is fairly ambitious. Where the code presented is not so straightforward, I explain the trickery involved. I assume you know enough about C to read straightforward code.
Teaching you how to write C is not a goal of this book.
Still another goal is to present code that makes sensible tradeoffs between accuracy, performance, and size.
A secondary goal is to make the code highly portable across diverse computer architectures. The primary design goal is to make the code as readable and as exemplay as possible. As much as possible, the code for the library is written in Standard C. I believe that seeing a realistic implementation of the Standard C library can help you better understand how to use it. I present about 9,000 lines of tested, working code. The book also shows you how to implement the library. I have chosen to focus on the library exclusively, since many other books describe the language proper. This book shows you how to use all the library functions mandated by the ANSI and IS0 Standards for the programming language C. h> lmplementing Testing References Exercisesīackground What the C Standard Says Using Implementing Testing References ExercisesĪppendix A: Interfaces Appendix B: Names Appendix C: Terms Index h> References Exercisesīackground What the C Standard Says Using Kstdlib. h> References Exercisesīackground What the C Standard Says Using lmplementing xstdarg. sert.h> * īackground What the C Standard Says Using lmplementing Testing References Exercisesīackground What the C Standard Says Using lmplementing Kctype.h> Testing Kctype. THE STAN DARD -.ype.h > * ring.h > * i:i.