Standard C++ Library Reference ISO/IEC (VERSION3)

Next
<stdlib.h>
EXIT_FAILURE · EXIT_SUCCESS · MB_CUR_MAX · NULL · RAND_MAX
abort · abs · atexit · atof · atoi · atol · bsearch · calloc ·
div · div_t · exit · free · getenv · labs · ldiv · ldiv_t ·
malloc · mblen · mbstowcs · mbtowc · qsort · rand · realloc ·
size_t · srand · strtod · strtol · strtoul · system · wchar_t ·
wcstombs · wctomb
Include the standard header <stdlib.h> to declare an assortment of useful functions and to
define the macros and types that help you use them.
/* MACROS */
#define EXIT_FAILURE <rvalue integer expression>
#define EXIT_SUCCESS <rvalue integer expression>
#define MB_CUR_MAX <rvalue integer expression >= 1>
#define NULL <either 0, 0L, or (void *)0> [0 in C++]
#define RAND_MAX <integer constant expression >= 32,767>
/* TYPES */
typedef struct {
int quot, rem;
} div_t;
typedef struct {
long quot, rem;
} ldiv_t;
typedef ui-type size_t;
typedef i-type wchar_t; [keyword in C++]
/* FUNCTIONS */
int abs(int i);
long abs(long i); [C++ only]
long labs(long i);
div_t div(int numer, int denom);
ldiv_t div(long numer, long denom); [C++ only]