2 @chapter Standard Utility Functions (@file{stdlib.h})
4 This chapter groups utility functions useful in a variety of programs.
5 The corresponding declarations are in the header file @file{stdlib.h}.
8 * abort:: Abnormal termination of a program
9 * abs:: Integer absolute value (magnitude)
10 * assert:: Macro for Debugging Diagnostics
11 * atexit:: Request execution of functions at program exit
12 * atof:: String to double or float
13 * atoi:: String to integer
14 * bsearch:: Binary search
15 * calloc:: Allocate space for arrays
16 * div:: Divide two integers
17 * ecvtbuf:: Double or float to string of digits
18 * ecvt:: Double or float to string of digits (malloc result)
19 * __env_lock:: Lock environment list for getenv and setenv
20 * gvcvt:: Format double or float as string
21 * exit:: End program execution
22 * getenv:: Look up environment variable
23 * labs:: Long integer absolute value (magnitude)
24 * ldiv:: Divide two long integers
25 * malloc:: Allocate and manage memory (malloc, realloc, free)
26 * mallinfo:: Get information about allocated memory
27 * __malloc_lock:: Lock memory pool for malloc and free
28 * mbstowcs:: Minimal multibyte string to wide string converter
29 * mblen:: Minimal multibyte length
30 * mbtowc:: Minimal multibyte to wide character converter
31 * qsort:: Sort an array
32 * rand:: Pseudo-random numbers
33 * rand48:: Uniformly distributed pseudo-random numbers
34 * strtod:: String to double or float
35 * strtol:: String to long
36 * strtoul:: String to unsigned long
37 * system:: Execute command string
38 * wcstombs:: Minimal wide string to multibyte string converter
39 * wctomb:: Minimal wide character to multibyte converter
43 @include stdlib/abort.def
46 @include stdlib/abs.def
49 @include stdlib/assert.def
52 @include stdlib/atexit.def
55 @include stdlib/atof.def
58 @include stdlib/atoi.def
61 @include stdlib/bsearch.def
64 @include stdlib/calloc.def
67 @include stdlib/div.def
70 @include stdlib/efgcvt.def
73 @include stdlib/ecvtbuf.def
76 @include stdlib/envlock.def
79 @include stdlib/exit.def
82 @include stdlib/getenv.def
85 @include stdlib/labs.def
88 @include stdlib/ldiv.def
91 @include stdlib/malloc.def
94 @include stdlib/mstats.def
97 @include stdlib/mlock.def
100 @include stdlib/mblen.def
103 @include stdlib/mbstowcs.def
106 @include stdlib/mbtowc.def
109 @include stdlib/qsort.def
112 @include stdlib/rand.def
115 @include stdlib/rand48.def
118 @include stdlib/strtod.def
121 @include stdlib/strtol.def
124 @include stdlib/strtoul.def
127 @include stdlib/system.def
130 @include stdlib/wcstombs.def
133 @include stdlib/wctomb.def