stdlib.h

Besides a redefinition of NULL, size_t and wchar_t, this header file contains the type definitions listed in the following table.

Table 1. Type Definitions in stdlib.h
Type Definition Description
typedef div_t; A struct for the return value of div().
typedef ldiv_t; A struct for the return value of ldiv().

The following table lists the constants defined in stdlib.h

Table 2. Constants Defined in stdlib.h
Constant Definition
EXIT_FAILURE Exit code for unsuccessful termination.
EXIT_SUCCESS Exit code for successful termination.
RAND_MAX Maximum return value of rand().
MB_LEN_MAX Maximum number of bytes in a multi-byte character.