Standard C include files

The header files belonging to a standard C environment are usually placed in /usr/include/.. directories. They are referenced from within a C file using < and > brackets. The following lists popular header files and what they contain.

stddef.h

Macros and type declarations

stdlib.h

access to environment, memory allocation (malloc..), utilities

stdio.h

Streaming input and output of characters

string.h

String function prototypes

ctype.h

Character handling (upper/lower case, alpha/numeric etc.)

wchar.h

wide characters for internationalization (I18n) and localization

wctype.h

like ctype only for wide characters

limits.h

says how big integer types are on THIS platform

float.h

implementation limits for floating-point numbers

math.h

math functions

assert.h

diagnose problems using assert statements

errno.h

many error codes. check it if you receive an error code from a program

locale.h

important functions and constants for localization of programs (language codes, message catalog functions)

stdarg.h

support for functions with variable arguments

signal.h

run-time exceptions sent by the kernel

Usually there are also system related include files under /usr/include/sys which contain device descriptions, kernel structure descriptions etc.

Note

These header files list a lot of function prototypes. Those prototypes are program code (object code) and NOT contained in the header files. They are only declared there. The functions themselves live in libraries which can be found under /usr/lib on many platforms.