cplusplus.com > reference > cstdlib |
stdlib.h |
cplusplus.com |
* = not ANSI-C, but supported by most compilers.
abort Abort current process returning error code abs Return absolute value of integer parameter atexit Specifies a function to be executed at exit atof Convert string to double atoi Convert string to integer atol Convert string to long bsearch Binary search calloc Allocate array in memory div Divide two integer values * ecvt Convert floating point value to string exit Terminate calling process * fcvt Convert floating point value to string free Deallocate dynamically allocated memory * gcvt Convert floating point value to string getenv Get string from environment * itoa Convert integer to string labs Return absolute calue of long integer parameter ldiv Divide two long integer values * lfind Linear search * lsearch Linear search * ltoa Convert long integer value to string malloc Allocate memory block * max Return the greater of two parameters * min Return the smaller of two parameters * putenv Create or modify environment variable qsort Sort using quicksort algorithm rand Generate random number realloc Reallocate memory block srand Initialize random number generator strtod Convert string to double-precision floating-point value strtol Convert string to long integer strtoul Convert string to unsigned long integer * swab Swap bytes system Execute command * ultoa Convert unsigned long integer to string
stdlib.h summary:
C stdlib.h library functions can be divided in these groups depending on their utility:
#define NULL 0
typedef unsigned int size_t;