Skip to Content
C语言核心技术(原书第2版)
book

C语言核心技术(原书第2版)

by Peter Prinz, Tony Crawford
August 2017
Intermediate to advanced
798 pages
17h 44m
Chinese
China Machine Press
Content preview from C语言核心技术(原书第2版)
273
第16章
标准头
每个标准库函数都会被声明在一个或多个标准头(
standard header
)中。这些标准头也
包括了
C
语言标准提供的所有宏和类型的定义。本章描述标准头的内容和使用方法。
每个标准头都包含一组相关的函数声明、宏和类型定义。例如,数学函数声明在头文件
math.h
中。标准头也称之为头文件(
header file
),因为每个标准头内容通常被存储在一
个文件中。然而,严格来说,
C
语言标准并没有强制要求将标准头组织成文件。
C
标准定义了以下
29
个头文件(其中有星号标识的是
C11
新增的):
assert.h inttypes.h signal.h stdint.h threads.h*
complex.h iso646.h stdalign.h* stdio.h time.h
ctype.h limits.h stdarg.h stdlib.h uchar.h*
errno.h locale.h stdatomic.h* stdnoreturn.h* wchar.h
fenv.h math.h stdbool.h string.h wctype.h
float.h setjmp.h stddef.h gmath.h
头文件
complex.h
、
stdatomic.h
和
threads.h
是可选的。有一些
C11
实现版本可以定义一些
标准宏,以指示该版本不包括前述可选的头文件。这里,如果宏
__STDC_NO_COMPLEX__
、
宏
__STDC_NO_ATOMICS_ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

算法精讲视频课程:24篇系列讲座

算法精讲视频课程:24篇系列讲座

罗伯特·塞奇威克, 凯文·韦恩(Kevin Wayne)

Publisher Resources

ISBN: 9787111562207