Standard library header <cstdlib>
From cppreference.com
This header was originally in the C standard library as <stdlib.h>
.
This header provides miscellaneous utilities. Symbols defined here are used by several library components.
Contents |
[edit] Macro constants
indicates program execution execution status (macro constant) |
|
MB_CUR_MAX |
maximum number of bytes in a multibyte character with the current locale (macro constant) |
implementation-defined null pointer constant (macro constant) |
|
maximum possible value generated by std::rand (macro constant) |
[edit] Types
structure type, return of the std::div function (typedef) |
|
structure type, return of the std::ldiv function (typedef) |
|
(C++11)
|
structure type, return of the std::lldiv function (typedef) |
unsigned integer type returned by the sizeof operator (typedef) |
[edit] Functions
Process control |
|
causes abnormal program termination (without cleaning up) (function) |
|
causes normal program termination with cleaning up (function) |
|
(C++11)
|
causes quick program termination without completely cleaning up (function) |
(C++11)
|
causes normal program termination without cleaning up (function) |
registers a function to be called on std::exit() invocation (function) |
|
(C++11)
|
registers a function to be called on quick_exit invocation (function) |
calls the host environment's command processor (function) |
|
access to the list of environment variables (function) |
|
Memory management |
|
allocates memory (function) |
|
allocates and zeroes memory (function) |
|
expands previously allocated memory block (function) |
|
deallocates previously allocated memory (function) |
|
Numeric string conversion |
|
converts a byte string to a floating point value (function) |
|
converts a byte string to an integer value (function) |
|
converts a byte string to an integer value (function) |
|
converts a byte string to an unsigned integer value (function) |
|
converts a byte string to a floating point value (function) |
|
Wide string manipulation |
|
returns the number of bytes in the next multibyte character (function) |
|
converts the next multibyte character to wide character (function) |
|
converts a wide character to its multibyte representation (function) |
|
converts a narrow multibyte character string to wide string (function) |
|
converts a wide string to narrow multibyte character string (function) |
|
Miscellaneous algorithms and math |
|
generates a pseudo-random number (function) |
|
seeds pseudo-random number generator (function) |
|
sorts a range of elements with unspecified type (function) |
|
searches an array for an element of unspecified type (function) |
|
(C++11)
|
computes absolute value of an integral value (|x|) (function) |
(C++11)
|
computes quotient and remainder of integer division (function) |