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 * Function _Exit:: End program execution without cleaning up
9 * Function a64l:: String to long long
10 * Function abort:: Abnormal termination of a program
11 * Function abs:: Integer absolute value (magnitude)
12 * Function assert:: Macro for Debugging Diagnostics
13 * Function atexit:: Request execution of functions at program exit
14 * Function atof:: String to double or float
15 * Function atoi:: String to integer
16 * Function atoll:: String to long long
17 * Function bsearch:: Binary search
18 * Function calloc:: Allocate space for arrays
19 * Function div:: Divide two integers
20 * Function ecvtbuf:: Double or float to string of digits
21 * Function ecvt:: Double or float to string of digits (malloc result)
22 * Function __env_lock:: Lock environment list for getenv and setenv
23 * Function gcvt:: Format double or float as string
24 * Function exit:: End program execution
25 * Function getenv:: Look up environment variable
26 * Function itoa:: Integer to string
27 * Function labs:: Long integer absolute value (magnitude)
28 * Function ldiv:: Divide two long integers
29 * Function llabs:: Long long integer absolute value (magnitude)
30 * Function lldiv:: Divide two long long integers
31 * Function malloc:: Allocate and manage memory (malloc, realloc, free)
32 * Function mallinfo:: Get information about allocated memory
33 * Function __malloc_lock:: Lock memory pool for malloc and free
34 * Function mbsrtowcs:: Convert a character string to a wide-character string
35 * Function mbstowcs:: Minimal multibyte string to wide string converter
36 * Function mblen:: Minimal multibyte length
37 * Function mbtowc:: Minimal multibyte to wide character converter
38 * Function on_exit:: Request execution of functions at program exit
39 * Function qsort:: Array sort
40 * Function rand:: Pseudo-random numbers
41 * Function random:: Pseudo-random numbers
42 * Function rand48:: Uniformly distributed pseudo-random numbers
43 * Function rpmatch:: Determine whether response is affirmative or negative
44 * Function strtod:: String to double or float
45 * Function strtol:: String to long
46 * Function strtoll:: String to long long
47 * Function strtoul:: String to unsigned long
48 * Function strtoull:: String to unsigned long long
49 * Function wcsrtombs:: Convert a wide-character string to a character string
50 * Function wcstod:: Wide string to double or float
51 * Function wcstol:: Wide string to long
52 * Function wcstoll:: Wide string to long long
53 * Function wcstoul:: Wide string to unsigned long
54 * Function wcstoull:: Wide string to unsigned long long
55 * Function system:: Execute command string
56 * Function utoa:: Unsigned integer to string
57 * Function wcstombs:: Minimal wide string to multibyte string converter
58 * Function wctomb:: Minimal wide character to multibyte converter
62 @include stdlib/_Exit.def
65 @include stdlib/a64l.def
68 @include stdlib/abort.def
71 @include stdlib/abs.def
74 @include stdlib/assert.def
77 @include stdlib/atexit.def
80 @include stdlib/atof.def
83 @include stdlib/atoi.def
86 @include stdlib/atoll.def
89 @include search/bsearch.def
92 @include stdlib/calloc.def
95 @include stdlib/div.def
98 @include stdlib/efgcvt.def
101 @include stdlib/ecvtbuf.def
104 @include stdlib/envlock.def
107 @include stdlib/exit.def
110 @include stdlib/getenv.def
113 @include stdlib/itoa.def
116 @include stdlib/labs.def
119 @include stdlib/ldiv.def
122 @include stdlib/llabs.def
125 @include stdlib/lldiv.def
128 @include stdlib/malloc.def
131 @include stdlib/mstats.def
134 @include stdlib/mlock.def
137 @include stdlib/mblen.def
140 @include stdlib/mbsnrtowcs.def
143 @include stdlib/mbstowcs.def
146 @include stdlib/mbtowc.def
149 @include stdlib/on_exit.def
152 @include search/qsort.def
155 @include stdlib/rand.def
158 @include stdlib/random.def
161 @include stdlib/rand48.def
164 @include stdlib/rpmatch.def
167 @include stdlib/strtod.def
170 @include stdlib/strtol.def
173 @include stdlib/strtoll.def
176 @include stdlib/strtoul.def
179 @include stdlib/strtoull.def
182 @include stdlib/wcsnrtombs.def
185 @include stdlib/wcstod.def
188 @include stdlib/wcstol.def
191 @include stdlib/wcstoll.def
194 @include stdlib/wcstoul.def
197 @include stdlib/wcstoull.def
200 @include stdlib/system.def
203 @include stdlib/utoa.def
206 @include stdlib/wcstombs.def
209 @include stdlib/wctomb.def