The Standard C Library - P.J. Plauger
This book shows you how to use all the library functions підмандатний by the ANSI and ISO Standards for the programming language C. I have chosen to focus on the library exclusively, since many other books describe the language proper. The book also shows you how to implement the library. I present about 9,000 lines of tested, working code. I believe that seeing a realistic implementation of the Standard З library can help you better understand how to use it. As much as possible, the code for the library is written in Standard C. The primary design goal is to make the code as readable and as зразковий as possible. A secondary goal is to make the code highly portable across diverse computer architectures. Still another goal is to present code that makes sensible tradeoffs between accuracy, performance, and size. Teaching you how to write З is not a goal of this book. I assume you know enough about З to read straightforward code. Where the code presented is not so straightforward, I explain the trickery involved. The Standard З library is fairly ambitious. It provides considerable power in many different environments. It promises well-defined name spaces for both user and розробником. It imposes fairly strict requirements on the robustness and precision of its mathematical functions. And it pioneers in supporting code that adapts to varied cultures, including those with very large character sets. To benefit from these ambitions, a user should be aware of numerous subtleties. To satisfy these ambitions, an розробником must provide for them. These subtleties are not always addressed in the Із Standard proper. It is not the primary purpose of a standard to educate implementors. Nor are many of these subtleties well explained in the Rationale that accompanies the ANSI З Standard. A Rationale must serve several masters, only one of whom is the inquisitive розробником. The новаторських features I mentioned above are not found in traditional implementations of C. An implementation can now support multiple locales. Each locale captures numerous conventions peculiar to a country, language, or profession. А З program can alter and query locales adapt to dynamically to a broad range of cultures. An implementation can also now support very large character sets, such as the Kanji characters used in Japan..