2183
备注:
|
1456
|
删除的内容标记成这样。 | 加入的内容标记成这样。 |
行号 1: | 行号 1: |
[[Navigation(slideshow)]] | ## page was renamed from Standard Library [[Navigation(slides)]] |
行号 3: | 行号 4: |
= Appendix B - Standard Library = | = Appendix B - Standard Library 标准库 = |
行号 21: | 行号 22: |
1. ["/B.01 Input and Output: <stdio.h>"] 1. ["/B.01.1 File Operations"] 1. ["/B.01.2 Formatted Output"] 1. ["/B.01.3 Formatted Input"] 1. ["/B.01.4 Character Input and Output Functions"] 1. ["/B.01.5 Direct Input and Output Functions"] 1. ["/B.01.6 File Positioning Functions"] 1. ["/B.01.7 Error Functions"] 1. ["/B.02 Character Class Tests: <ctype.h>"] 1. ["/B.03 String Functions: <string.h>"] 1. ["/B.04 Mathematical Functions: <math.h>"] 1. ["/B.05 Utility Functions: <stdlib.h>"] 1. ["/B.06 Diagnostics: <assert.h>"] 1. ["/B.07 Variable Argument Lists: <stdarg.h>"] 1. ["/B.08 Non-local Jumps: <setjmp.h>"] 1. ["/B.09 Signals: <signal.h>"] 1. ["/B.10 Date and Time Functions: <time.h>"] 1. ["/B.11 Implementation-defined Limits: <limits.h> and <float.h>"] [[Navigation(children)]] |
[[Include(^TCPL/B\.[0-9][0-9] .*,,titlesonly)]] |
Appendix B - Standard Library 标准库
This appendix is a summary of the library defined by the ANSI standard. The standard library is not part of the C language proper, but an environment that supports standard C will provide the function declarations and type and macro definitions of this library. We have omitted a few functions that are of limited utility or easily synthesized from others; we have omitted multi-byte characters; and we have omitted discussion of locale issues; that is, properties that depend on local language, nationality, or culture.
The functions, types and macros of the standard library are declared in standard headers:
<assert.h> <float.h> <math.h> <stdarg.h> <stdlib.h> <ctype.h> <limits.h> <setjmp.h> <stddef.h> <string.h> <errno.h> <locale.h> <signal.h> <stdio.h> <time.h>
A header can be accessed by
#include <header>
Headers may be included in any order and any number of times. A header must be included outside of any external declaration or definition and before any use of anything it declares. A header need not be a source file.
External identifiers that begin with an underscore are reserved for use by the library, as are all other identifiers that begin with an underscore and an upper-case letter or another underscore.