Skip to content

C Header Reference

C Headers

  • <cassert> assert.h - defines one macro function that can be used as a standard debugging tool.
  • <cctype> ctype.h - declares a set of functions to classify and transform individual characters.
  • <cerrno> errno.h - defines the following macro errno.
  • <cfenv> fenv.h - declares a set of functions and macros to access the floating-point environment, along with specific types.
  • <cfloat> float.h - describes the characteristics of floating types for the specific system and compiler implementation used.
  • [<cinttypes> inttypes.h]https://cplusplus.com/reference/cinttypes/) - library support for width-based integral types.
  • <ciso646> iso646.h - eleven macro constants with alternative spellings for those C++ operators not supported by the ISO646 standard character set.
  • <climits> limits.h - defines constants with the limits of fundamental integral types for the specific system and compiler implementation used.
  • <clocale> locale.h - supports localization specific settings, such as culture-specific date formats or country-specific currency symbols.
  • <cmath> math.h - declares a set of functions to compute common mathematical operations and transformations:
  • <csetjmp> setjmp.h - tools provided through this header file allow the programmer to bypass the normal function call and return discipline, by providing the means to perform jumps preserving the calling environment.
  • <csignal> signal.h - Some running environments use signals to inform running processes of certain events. These events may be related to errors performed by the program code, like a wrong arithmetical operation or to exceptional situations, such as a request to interrupt the program.
  • <cstdarg> stdarg.h - defines macros to access the individual arguments of a list of unnamed arguments whose number and types are not known to the called function.
  • <cstdbool> stdbool.h - purpose in C of this header is to add a bool type and the true and false values as macro definitions.
  • <cstddef> stddef.h - defines several types implicitly generated or used by certain language expressions.
  • <cstdint> stdint.h - defines a set of integral type aliases with specific width requirements, along with macros specifying their limits and macro functions to create values of these types.
  • <cstdio> stdio.h - Input and Output operations can also be performed in C++ using the C Standard Input and Output Library (cstdio, known as stdio.h in the C language). This library uses what are called streams to operate with physical devices such as keyboards, printers, terminals or with any other type of files supported by the system.
  • <cstdlib> stdlib.h - defines several general purpose functions, including dynamic memory management, random number generation, communication with the environment, integer arithmetics, searching, sorting and converting.
  • <cstring> string.h - defines several functions to manipulate C strings and arrays.
  • <ctgmath> tgmath.h - macro functions that correspond to the functions in <math.h>, but which can take other non-floating point types as arguments:
  • <ctime> time.h - contains definitions of functions to get and manipulate date and time information.
  • <cuchar> uchar.h - provides support for 16-bit and 32-bit characters, suitable to be encoded using UTF-16 and UTF-32.
  • <cwchar> wchar.h - defines several functions to work with C wide strings.
  • <cwctype> wctype.h - declares a set of functions to classify and transform individual wide characters.