Name | Description | Notes | Source | Availability | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
_Exit() |
Terminate program without registered activity | (·) | <stdlib.h> |
C99 | C11 | ||||||
abort() |
Abort program execution | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
abort_ |
Report constraint violation and abort | ? | (·) | <stdlib.h> |
C11 | ||||||
abs() |
Compute absolute value | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
aligned_ |
Allocate memory for specific alignment | (·) | <stdlib.h> |
C11 | |||||||
at_ |
Register activity on quick termination | (·) | <stdlib.h> |
C11 | |||||||
atexit() |
Register activity on normal termination | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
atof() |
Convert string to real | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
atoi() |
Convert string to integer | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
atol() |
Convert string to integer | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
atoll() |
Convert string to integer | (·) | <stdlib.h> |
C99 | C11 | ||||||
bsearch() |
Search array | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
bsearch_s() |
Search array | ? | (·) | <stdlib.h> |
C11 | ||||||
calloc() |
Allocate initialised memory | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
constraint_ |
Type of function handling run-time constraint violations | ? | T | <stdlib.h> |
C11 | ||||||
div() |
Compute quotient and remainder of integer division | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
div_t |
Result of integer division | T | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
EXIT_ |
Indication of program failure | M | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
EXIT_ |
Indication of program success | M | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
errno_t |
Error-number type | ? | T | Headers | C11 | ||||||
exit() |
Terminate program | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
free() |
Release memory | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
getenv() |
Get environment string | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
getenv_s() |
Get environment string | ? | (·) | <stdlib.h> |
C11 | ||||||
ignore_ |
No operation | ? | (·) | <stdlib.h> |
C11 | ||||||
labs() |
Compute absolute value | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
ldiv() |
Compute quotient and remainder of integer division | (·) | <stdlib.h> |
C99 | C11 | ||||||
ldiv_t |
Result of integer division | T | <stdlib.h> |
C99 | C11 | ||||||
llabs() |
Compute absolute value | (·) | <stdlib.h> |
C99 | C11 | ||||||
lldiv() |
Compute quotient and remainder of integer division | (·) | <stdlib.h> |
C99 | C11 | ||||||
lldiv_t |
Result of integer division | T | <stdlib.h> |
C99 | C11 | ||||||
MB_ |
Maximum multibyte character length in current locale | M | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
malloc() |
Allocate memory for all alignments | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
mblen() |
Compute multibyte character length | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
mbstowcs() |
Convert multibyte string to wide string | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
mbstowcs_s() |
Convert multibyte string to wide string | (·) | <stdlib.h> |
C11 | |||||||
mbtowc() |
Convert multibyte character to wide character | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
NULL |
Null pointer constant | L | M | Headers | C89 | C90 | C95 | C99 | C11 | ||
qsort() |
Sort array | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
qsort_s() |
Sort array | ? | (·) | <stdlib.h> |
C11 | ||||||
quick_ |
Terminate program without signals | (·) | <stdlib.h> |
C11 | |||||||
RAND_ |
Maximum of random range | M | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
rand() |
Generate pseudo-random number | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
realloc() |
Reallocate memory | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
rsize_t |
Implementation-defined size type with implied run-time constraints | L | ? | T | Headers | C11 | |||||
set_ |
Set the constraint handler | ? | (·) | <stdlib.h> |
C11 | ||||||
size_t |
Implementation-defined size type | H | T | Headers | C89 | C90 | C95 | C99 | C11 | ||
srand() |
Seed random-number generator | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
strtod() |
Convert string to real | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
strtof() |
Convert string to real | (·) | <stdlib.h> |
C99 | C11 | ||||||
strtol() |
Convert string to integer | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
strtold() |
Convert string to real | (·) | <stdlib.h> |
C99 | C11 | ||||||
strtoll() |
Convert string to integer | (·) | <stdlib.h> |
C99 | C11 | ||||||
strtoul() |
Convert string to integer | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
strtoull() |
Convert string to integer | (·) | <stdlib.h> |
C99 | C11 | ||||||
system() |
Execute environment command | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
wchar_t |
Wide-character type | H | T | Headers | C95 | C99 | C11 | ||||
wcstombs() |
Convert wide string to multibyte string | (·) | <stdlib.h> |
C95 | C99 | C11 | |||||
wcstombs_s() |
Convert wide string to multibyte string | ? | (·) | <stdlib.h> |
C11 | ||||||
wctomb() |
Convert wide character to multibyte character | (·) | <stdlib.h> |
C89 | C90 | C95 | C99 | C11 | |||
wctomb_s() |
Convert wide character to multibyte character | ? | (·) | <stdlib.h> |
C11 |
The header <stdlib.h>
declares functions for the following various purposes: