Navigation(slideshow)

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.

  1. ["/B.01 Input and Output: <stdio.h>"]

  2. ["/B.01.1 File Operations"]
  3. ["/B.01.2 Formatted Output"]
  4. ["/B.01.3 Formatted Input"]
  5. ["/B.01.4 Character Input and Output Functions"]
  6. ["/B.01.5 Direct Input and Output Functions"]
  7. ["/B.01.6 File Positioning Functions"]
  8. ["/B.01.7 Error Functions"]
  9. ["/B.02 Character Class Tests: <ctype.h>"]

  10. ["/B.03 String Functions: <string.h>"]

  11. ["/B.04 Mathematical Functions: <math.h>"]

  12. ["/B.05 Utility Functions: <stdlib.h>"]

  13. ["/B.06 Diagnostics: <assert.h>"]

  14. ["/B.07 Variable Argument Lists: <stdarg.h>"]

  15. ["/B.08 Non-local Jumps: <setjmp.h>"]

  16. ["/B.09 Signals: <signal.h>"]

  17. ["/B.10 Date and Time Functions: <time.h>"]

  18. ["/B.11 Implementation-defined Limits: <limits.h> and <float.h>"]

Navigation(children)

ch3n2k.com | Copyright (c) 2004-2020 czk.