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

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. 

主站蜘蛛池模板: 山丹县| 江阴市| 若羌县| 梁河县| 桂东县| 台东市| 北宁市| 连州市| 陇西县| 靖州| 井研县| 云梦县| 庐江县| 镇平县| 和平区| 静海县| 安福县| 高平市| 天柱县| 七台河市| 滦平县| 沅江市| 鞍山市| 兴业县| 汕尾市| 句容市| 潞西市| 秦皇岛市| 双流县| 乌什县| 建始县| 油尖旺区| 大田县| 都兰县| 大埔区| 抚远县| 濮阳县| 衢州市| 扶沟县| 错那县| 汽车|