Namespaces
Variants
Views
Actions

Standard library header <cstdlib>

From cppreference.com
< cpp‎ | header
Revision as of 02:04, 15 December 2012 by Bazzy (Talk | contribs)

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.

Template:cpp/numeric/random/dcl list RAND MAXTemplate:cpp/string/byte/dcl list atofTemplate:cpp/string/byte/dcl list atoiTemplate:cpp/string/byte/dcl list strtolTemplate:cpp/string/byte/dcl list strtoulTemplate:cpp/string/byte/dcl list strtofTemplate:cpp/string/multibyte/dcl list mblenTemplate:cpp/string/multibyte/dcl list mbtowcTemplate:cpp/string/multibyte/dcl list wctombTemplate:cpp/string/multibyte/dcl list mbstowcsTemplate:cpp/string/multibyte/dcl list wcstombsTemplate:cpp/numeric/random/dcl list randTemplate:cpp/numeric/random/dcl list srandTemplate:cpp/algorithm/dcl list qsortTemplate:cpp/algorithm/dcl list bsearch

Contents

Macros

indicates program execution execution status
(macro constant) [edit]

Classes

div_t
ldiv_t
lldiv_t
the quotient and remainder of integer division
(struct)

Functions

Process control
causes abnormal program termination (without cleaning up)
(function) [edit]
causes normal program termination with cleaning up
(function) [edit]
causes quick program termination without completely cleaning up
(function) [edit]
(C++11)
causes normal program termination without cleaning up
(function) [edit]
registers a function to be called on std::exit() invocation
(function) [edit]
registers a function to be called on quick_exit invocation
(function) [edit]
calls the host environment's command processor
(function) [edit]
access to the list of environment variables
(function) [edit]
Memory management
allocates memory
(function)
allocates and zeroes memory
(function)
expands previously allocated memory block
(function)
deallocates previously allocated memory
(function)
Numeric string conversion
Wide string manimpulation
Miscellaneous algorithms and math
computes absolute value of an integral value (|x|)
(function)
the quotient and remainder of integer division
(function)

See Also