Names specified for <stdlib.h>, “Miscellaneous utilities”
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_handler_s() Report constraint violation and abort ? (·) <stdlib.h> C11
abs() Compute absolute value (·) <stdlib.h> C89 C90 C95 C99 C11
aligned_alloc() Allocate memory for specific alignment (·) <stdlib.h> C11
at_quick_exit() 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_handler_t 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_FAILURE Indication of program failure M <stdlib.h> C89 C90 C95 C99 C11
EXIT_SUCCESS 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_handler_s() 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_CUR_MAX 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_exit() Terminate program without signals (·) <stdlib.h> C11
RAND_MAX 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_constraint_handler_s() 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

This header is available in C89, C90, C95, C99 and C11.

The header <stdlib.h> declares functions for the following various purposes:


CHaR
Sitemap Supported
Site format updated 2024-06-05T22:37:07.391+0000
Data updated 1970-01-01T00:00:00.000+0000
Page updated 2022-06-17T21:43:05.000+0000