This chapter groups utility functions useful in a variety of programs. The corresponding declarations are in the header file stdlib.h.
_Exit
—end program execution with no cleanup processinga64l
, l64a
—convert between radix-64 ASCII string and longabort
—abnormal termination of a programabs
—integer absolute value (magnitude)assert
—macro for debugging diagnosticsatexit
—request execution of functions at program exitatof
, atoff
—string to double or floatatoi
, atol
—string to integeratoll
—convert a string to a long long integerbsearch
—binary searchcalloc
—allocate space for arraysdiv
—divide two integersecvt
, ecvtf
, fcvt
, fcvtf
—double or float to stringgcvt
, gcvtf
—format double or float as stringecvtbuf
, fcvtbuf
—double or float to string__env_lock
, __env_unlock
—lock environ variableexit
—end program executiongetenv
—look up environment variableitoa
—integer to stringlabs
—long integer absolute valueldiv
—divide two long integersllabs
—compute the absolute value of an long long integer.lldiv
—divide two long long integersmalloc
, realloc
, free
—manage memorymallinfo
, malloc_stats
, mallopt
—malloc support__malloc_lock
, __malloc_unlock
—lock malloc poolmblen
—minimal multibyte length functionmbsrtowcs
, mbsnrtowcs
—convert a character string to a wide-character stringmbstowcs
—minimal multibyte string to wide char convertermbtowc
—minimal multibyte to wide char converteron_exit
—request execution of function with argument at program exitqsort
—sort an arrayrand
, srand
—pseudo-random numbersrandom
, srandom
—pseudo-random numbersrand48
, drand48
, erand48
, lrand48
, nrand48
, mrand48
, jrand48
, srand48
, seed48
, lcong48
—pseudo-random number generators and initialization routinesrpmatch
—determine whether response to question is affirmative or negativestrtod
, strtof
, strtold
, strtod_l
, strtof_l
, strtold_l
—string to double or floatstrtol
, strtol_l
—string to longstrtoll
, strtoll_l
—string to long longstrtoul
, strtoul_l
—string to unsigned longstrtoull
, strtoull_l
—string to unsigned long longwcsrtombs
, wcsnrtombs
—convert a wide-character string to a character stringwcstod
, wcstof
, wcstold
, wcstod_l
, wcstof_l
, wcstold_l
—wide char string to double or floatwcstol
, wcstol_l
—wide string to longwcstoll
, wcstoll_l
—wide string to long longwcstoul
, wcstoul_l
—wide string to unsigned longwcstoull
, wcstoull_l
—wide string to unsigned long longsystem
—execute command stringutoa
—unsigned integer to stringwcstombs
—minimal wide char string to multibyte string converterwctomb
—minimal wide char to multibyte converter