C Programming/Standard library reference

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Headers

ANSI C (C89)/ISO C (C90)

assert.h Verify program assertion.
ctype.h Character types.
errno.h System error numbers.
float.h Floating types.
limits.h Implementation-defined constants.
locale.h Category macros.
math.h Mathematical declarations.
setjmp.h Stack environment declarations.
signal.h Signals.
stdarg.h Handle variable argument list.
stddef.h Standard type definitions.
stdio.h Standard buffered input/output.
stdlib.h Standard library definitions.
string.h String operations.
time.h Time types.

ISO C (C94/C95), Amendment 1 (AMD1)

Very old compilers may not include some or all of these headers

iso646.h Alternative spellings.
wchar.h Wide-character handling.
wctype.h Wide-character classification and mapping utilities.

ISO C (C99)

These are supported only in newer compilers

complex.h Complex arithmetic.
fenv.h Floating-point environment.
inttypes.h Fixed size integer types.
stdbool.h Boolean type and values.
stdint.h Integer types.
tgmath.h Type-generic macros.

ISO C (C11)

These are supported only in newer compilers

stdalign.h Alignment keywords and macros.
stdatomic.h Atomic operations on data shared between threads.
stdnoreturn.h _Noreturn function specifier macro.
threads.h Support for multiple threads of execution.
uchar.h Types and functions for manipulating Unicode characters.

Table of functions

This table also includes function-like macros

assert.h

complex.h

ctype.h

fenv.h

inttypes.h

locale.h

math.h

setjmp.h

signal.h

stdarg.h

stdatomic.h

stddef.h

stdio.h

stdlib.h

string.h

threads.h

time.h

uchar.h

wchar.h

wctype.h