C标准库.pdf

C标准库.pdf
 

书籍描述

内容简介
  《C标准库(英文版)》是由世界级C语言专家编写的C标准库经典著作,影响了几代程序员。
  《C标准库(英文版)》集中讨论了C标准库,全面介绍了ANSI/ISO C语言标准的所有库函数。书中通过引用ISO C标准的相关部分,详细讲解了每一个库函数的使用方法,并通过示例描述了其实现细节,且给出了实现和测试这些函数的完整代码。此外,每章结尾附有不同难度的习题,帮助读者巩固和提高。通过此书,读者将会更好地使用C标准库,并学会如何设计和实现库。
  《C标准库(英文版)》结构清晰,内容权威,阐述精辟,对于各层次C程序员和相关专业高校师生而言都是一本优秀的参考书。

编辑推荐
C标准库圣经
提供完整源代码,全面深入阐述库函数的实现与运用
C程序员必备参考书

名人推荐
“本书包含了所有C标准库实现的源代码,详细到每个毛孔,更具体地谈了一些实现的目的和意图,真的是一本很不错的经典。”
————china—pub读者“tangboyun”
“本书是C语言方面的权威书籍,详细讲述了C标准库中每个函数的使用方法与注意事项。更关键的是,本书给出了每个标准库函数的实现源代码,不但有利于提高算法方面的造诣,也可以指导如何写好一个库,写库时要注意什么。”
——china—pub读者“yehanjia”
“如果你是喜欢刨根问底的C/C++粉丝,这本专门讲解标准库实现的书就是你的饕餮大餐。”
——china—pub读者“hfz2000”

媒体推荐
 “绝对一流的著作,C程序员的饕餮大餐!”
  ——C/C++ User Jounal
“本书包含了所有C标准库实现的源代码,详细到每个毛孔,更具体地谈了一些是实现的目的和意图,真的是一本很不错的经典。”
——china-pub读者“tangboyun”

“本书是C语言方面的权威书籍,详细讲述了C标准库中每个函数的使用方法与注意事项。更关键的是,本书给出了每个标准库函数的实现源代码,不但有利于提高算法方面的造诣,也可以指导如何能够写好一个库,写库时要注意什么。”
——china-pub读者“yehanjia”

“如果你是喜欢刨根问底的C/C++ 粉丝,这本专门讲解标准库实现的书就是你的饕餮大餐。我以前刚学C的时候总在想这些库是怎么实现的,总想有人把实现摊开给我好好看看,现在终于看到了。真是太爽了,读起来让我大呼过瘾!”
——china-pub读者“hfz2000”

作者简介
P. J. Plauger是最早使用C编程语言的一批用户,他主持了X3J11库函数小组委员会(由ANSI授权)来制定C标准。他随后作为X3J11的秘书和 WG14(由ISO授权的委员会)的召集人,对C标准进行了加强。Plauger博士与Brian Kernighan合作了很多备受好评的图书,其中包括SOFTWARE TOOLS、SOFTWARE TOOLS IN PASCAL和THE ELEMENT OF PROGRMMING STYLE。他还与Jim Brodie(X3J11的主席)合著了STANDARD C,该书是C编程语言的完全指南。

目录
Chapter 0: Introduction
Background
What the C Standard Says
Using the Library
Implementing the Library
Testing he Library
References
Exercises
Chapter 1:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exercises
Chapter 2:
Background
What the C Standard Says
Using
Implementìng
Testing
References
Exercises
Chapter 3:
Background
What the C Stcndard Says
Usìng
Implementing
Testìng
References
Exercises
Chapter 4:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exercises
Chapter 5:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exercises
Chapter 6:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exercises
Chapter 7:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exercises
Chapter 8:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exercises
Chapter9:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exercises
Chapter 10:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exerclses
Chapter 11:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exercises
Chapter 12:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exercises
Chapter 13:
Background
What the C Standard Says
Using
Imple lenting
Testing
References
Exercises
Chapter 14:
Background
What the C Standard Says
Using
Implementing
Testing
References
Exercises
Chapter 15:
Background
What the C Standard Says
Using
Implementlng
Testing
References
Exercises
Appendix A: Inferfaces
Appendix B: Names
Appendix C: Terms
Index

文摘
版权页:



Exercises
Exercise 1.1 Write a version of assert, using the version of xassert.c in Figure 1.2, that exactly matches the format shown in the C Standard.
Exercise 1.2 Write a version of xassert.c, using the version of assert,h in Figure 1.1, that exactly matches the format shown in the C Standard.
Exercise 1.3 What are the relative merits of the approaches in the previous two exercises?
Exercise 1.4 Write a version of assert.h and xassert.c that prints all assertions.Why would you want to use this version?
Exercise 1.5 (Harder) Write a handler for the signal SIGABRT that writes the prompt: Continue (y/n) ?
to the standard error stream and reads the response from the standard input stream.If the response is yes (in either uppercase or lowercase), the handler should reestablish itself and return control to the abort function.Chapter 9: describes signals.Chapter 13: describes the abort function.
Why would you want this capability?
Exercise 1.6 (Harder) Write a handier for the signal SXGABRTT that executes a longjmp to a setjmp at the top of main.Chapter 8: describes the longjmp and setjmp functions.
Why would you want this capability? Describe a safe discipline for initializing static storage in a program that uses this capability.
Exercise 1.7 (Very hard) Some C translators provide a source-level interactive debugger.Such debuggers often let you set conditional breakpoints at various points within the executing program.Locate such a C translator and explore what is necessary to get to work with the debugger.Your goals are, in order of increasing difficulty:
Have control revert to the debugger whenever an assertion fails.Execu tion should continue with the statement following the offending assert macro invocation.
Have assert generate no inline code.It should pass instructions to the source-level debugger instead.
Generate code at the same level of optimization whether or not assert macros appear, in either passive or active form.
Have the modified assert accept test expressions of arbitrary complexity
Why would you want each of these capabilities?

购买书籍

当当网购书 京东购书 卓越购书

PDF电子书下载地址

相关书籍

搜索更多