====== stdlib.h ====== ==== Numeric conversions ==== ^ Function ^ Description ^ | [[c:stdlib.h:atof|]] |converts a string to a floating-point value | | [[c:stdlib.h:atoi|]] |converts a string to a integer value | | [[c:stdlib.h:atol|]] |converts a string to a long integer value | | [[c:stdlib.h:strtod|]] |converts a string to a double value | | [[c:stdlib.h:strtol|]] |converts a string to a long integer value | | [[c:stdlib.h:strtoul|]] |converts a string to a unsigned integer value | ==== Mathematical functions ==== ^ Function ^ Description ^ | [[c:stdlib.h:abs|]] |computes absolute value of an integral value | | [[c:stdlib.h:labs|]] |computes absolute value of an integral value | | [[c:stdlib.h:div|]] |computes the quotient and remainder of integer division | | [[c:stdlib.h:ldiv|]] |computes the quotient and remainder of integer division (long integer) | ==== Widechar conversions ==== ^ Function ^ Description ^ | [[c:stdlib.h:wcstombs|]] |converts a Wide character string to a Multibyte character string | | [[c:stdlib.h:wctomb|]] |converts a Wide character to a Multibyte character | ==== Multibyte conversions / functions ==== ^ Function ^ Description ^ | [[c:stdlib.h:mblen|]] |returns the number of bytes from a multibyte character | | [[c:stdlib.h:mbstowcs|]] |converts a Multibyte character string to a Wide character string | | [[c:stdlib.h:mbtowc|]] |converts a Multibyte character to a Wide character | ==== Memory manipulation ==== ^ Function ^ Description ^ | [[c:stdlib.h:calloc|]] |allocates the specified number of bytes | | [[c:stdlib.h:free|]] |releases the specified block of memory back to the system | | [[c:stdlib.h:realloc|]] |increases the size of the specified block of memory Reallocates it if needed | | [[c:stdlib.h:malloc|]] |allocates the specified number of bytes | ==== Process control ==== ^ Function ^ Description ^ | [[c:stdlib.h:abort|]] |causes abnormal program termination without cleaning up | | [[c:stdlib.h:atexit|]] |registers a function to be called on exit() invocation | | [[c:stdlib.h:exit|]] |causes normal program termination with cleaning up | | [[c:stdlib.h:getenv|]] |accesses the list of the environment variables | | [[c:stdlib.h:system|]] |calls the host environments command processor | ==== Random number generation ==== ^ Function ^ Description ^ | [[c:stdlib.h:rand|]] |generates a pseudo-random number | | [[c:stdlib.h:srand|]] | initializes a pseudo-random number generator | ==== Operator ==== ^ Function ^ Description ^ | [[c:stdlib.h:sizeof|]] |calculate the size of any datatype | ==== Array functions ==== ^ Function ^ Description ^ | [[c:stdlib.h:bsearch|]] |binary search in a array | | [[c:stdlib.h:qsort|]] |sorts Quick X elements of the array |