Author Topic: C Standard Header Files  (Read 47 times)

Robert

  • Full Member
  • ***
  • Posts: 212
    • View Profile
C Standard Header Files
« on: February 21, 2020, 12:02:16 AM »
In 1995, after a long period of stability, three new header files (iso646.h, wchar.h, and wctype.h) were added with Normative Addendum 1  (also known as NA1, C94, and C95), an addition to the C Standard.

In 1999, six more header files (complex.h, fenv.h, inttypes.h, stdbool.h, stdint.h, and tgmath.h) were added with C99.

and five more files (stdalign.h, stdatomic.h, stdnoreturn.h, threads.h, and uchar.h) with C11 in 2011.

In total, there are now 29 header files:

Code: [Select]


<assert.h>          Contains the assert macro, used to assist with detecting logical errors and other types of bug in debugging versions of
                    a program.

<complex.h>     C99 A set of functions for manipulating complex numbers.

<ctype.h>           Defines set of functions used to classify characters by their types or to convert between upper and lower case in a way
                    that is independent of the used character set (typically ASCII or one of its extensions, although implementations
                    utilizing EBCDIC are also known).

<errno.h>           For testing error codes reported by library functions.

<fenv.h>        C99 Defines a set of functions for controlling floating-point environment.

<float.h>           Defines macro constants specifying the implementation-specific properties of the floating-point library.

<inttypes.h>    C99 Defines exact-width integer types.

<iso646.h>      NA1 Defines several macros that implement alternative ways to express several standard tokens.
                    For programming in ISO646 variant character sets.

<limits.h>          Defines macro constants specifying the implementation-specific properties of the integer types.

<locale.h>          Defines localization functions.

<math.h>            Defines common mathematical functions.

<setjmp.h>          Declares the macros setjmp and longjmp, which are used for non-local exits.

<signal.h>          Defines signal-handling functions.

<stdalign.h>    C11 For querying and specifying the alignment of objects.

<stdarg.h>          For accessing a varying number of arguments passed to functions.

<stdatomic.h>   C11 For atomic operations on data shared between threads.

<stdbool.h>     C99 Defines a boolean data type.

<stddef.h>          Defines several useful types and macros.

<stdint.h>      C99 Defines exact-width integer types.

<stdio.h>           Defines core input and output functions

<stdlib.h>          Defines numeric conversion functions, pseudo-random numbers generation functions, memory allocation, process
                    control functions

<stdnoreturn.h> C11 For specifying non-returning functions

<string.h>          Defines string-handling functions

<tgmath.h>      C99 Defines type-generic mathematical functions.

<threads.h>     C11 Defines functions for managing multiple threads, mutexes and condition variables

<time.h>            Defines date- and time-handling functions

<uchar.h>       C11 Types and functions for manipulating Unicode characters

<wchar.h>       NA1 Defines wide-string-handling functions

<wctype.h>      NA1 Defines set of functions used to classify wide characters by their types or to convert between upper and lower case