This documentation is copyright © 1998-2001 Sandro Sigala <sandro@sigala.it>.
All rights reserved.

Released under the GNU General Public License.

Return to index Up one level Previous symbol Next symbol

The ISO C <stdlib.h> Header

Click here for a summary of the <stdlib.h> header.

Macros

EXIT_FAILUREThe unsuccessful program termination value
EXIT_SUCCESSThe successful program termination value
MB_CUR_MAXThe maximum size of a multibyte string
NULLThe null pointer constant
RAND_MAXThe maximum random number generated

Types

div_tThe quotient and remainder of an integer division
ldiv_tThe quotient and remainder of a long integer division
size_tThe size type
wchar_tThe wide character type

Functions

atofConvert a string into a double
atoiConvert a string into an integer
atolConvert a string into a long integer
strtodConvert a string into a double
strtolConvert a string into a long integer
strtoulConver a string to an unsigned long integer
randRandom number generator
srandSet the random number generator sequence
callocAllocate dynamic memory
freeFree dynamic memory
mallocAllocate dynamic memory
reallocResize dynamic memory
abortCause abnormal program termination
atexitRegister function to be called at normal program termination
exitCause normal program termination
getenvGet an environment variable
systemExecute an external command
bsearchBinary search
qsortQuick sort
absReturn absolute value of an integer
divComputes the quotient and remainder of integer division
labsReturn absolute value of a long integer
ldivComputes the quotient and remainder of long integer division
mblenDetermines the number of bytes in a character
mbtowcConvert a multibyte character to a wide character
wctombConvert a wide character to a multibyte character
mbstowcsConvert a multibyte string to a wide character string
wcstombsConvert a wide character string to a multibyte character string