官术网_书友最值得收藏!

Libraries

Standard C not only defines a syntax, the environment, and how programs are linked, it also provides a set of libraries that may be leveraged by a programmer to perform system programming. Some of these libraries are as follows:

  • errno.h: Provides the code needed for working with errors. This library will be discussed in further detail in Chapter 13, Error - Handling with Exceptions.
  • inttypes.h: Provides type information, which will be discussed in Chapter 3System Types for C and C++.
  • limits.h: Provides information about the limits of each type, which will be discussed in Chapter 3, System Types for C and C++.
  • setjump.h: Provides the APIs for C-style exception handling, which will be discussed in Chapter 13, Error - Handling with Exceptions.
  • signal.h: Provides APIs for handling signals sent from the system to your program, which will be discussed in Chapter 5Programming Linux/Unix Systems.
  • stdbool.h: Provides type information, which will be discussed in Chapter 3, System Types for C and C++.
  • stddef.h: Provides type information, which will be discussed in Chapter 3, System Types for C and  C++.
  • stdint.h: Provides type information, which will be discussed in Chapter 3, System Types for C and C++.
  • stdio.h: Provides functions for working with input and output while system programming, which will be discussed in Chapter 6Learning to Program Console Input/Output, and Chapter 8Learning to Program File Input/Output
  • stdlib.h: Provides various utilities, including dynamic memory allocation APIs, which will be discussed in Chapter 7A Comprehensive Look at Memory Management.
  • time.h: Provides facilities for working with clocks, which will be discussed in Chapter 11Time Interfaces in Unix.

As stated previously, the bulk of this book will focus on these facilities and how they support system programming. 

主站蜘蛛池模板: 南安市| 潞西市| 甘肃省| 黄浦区| 青浦区| 兰州市| 武宁县| 抚远县| 阿鲁科尔沁旗| 上饶市| 北京市| 雅江县| 南川市| 自治县| 濮阳市| 新晃| 宕昌县| 寿光市| 兰西县| 米易县| 白沙| 白玉县| 永德县| 石家庄市| 团风县| 和平区| 英德市| 芒康县| 扎兰屯市| 石首市| 湟源县| 酒泉市| 江山市| 长丰县| 永丰县| 张家界市| 南丹县| 名山县| 青海省| 日土县| 汝南县|