Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / stdlib.tex
blob4da8fcfe8c8f7ed511c7c9165d25b9f0af0129e7
1 @node Stdlib
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}.
7 @menu
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
59 @end menu
61 @page
62 @include stdlib/_Exit.def
64 @page
65 @include stdlib/a64l.def
67 @page
68 @include stdlib/abort.def
70 @page
71 @include stdlib/abs.def
73 @page
74 @include stdlib/assert.def
76 @page
77 @include stdlib/atexit.def
79 @page
80 @include stdlib/atof.def
82 @page
83 @include stdlib/atoi.def
85 @page
86 @include stdlib/atoll.def
88 @page
89 @include search/bsearch.def
91 @page
92 @include stdlib/calloc.def
94 @page
95 @include stdlib/div.def
97 @page
98 @include stdlib/efgcvt.def
100 @page
101 @include stdlib/ecvtbuf.def
103 @page
104 @include stdlib/envlock.def
106 @page
107 @include stdlib/exit.def
109 @page
110 @include stdlib/getenv.def
112 @page
113 @include stdlib/itoa.def
115 @page
116 @include stdlib/labs.def
118 @page
119 @include stdlib/ldiv.def
121 @page
122 @include stdlib/llabs.def
124 @page
125 @include stdlib/lldiv.def
127 @page
128 @include stdlib/malloc.def
130 @page
131 @include stdlib/mstats.def
133 @page
134 @include stdlib/mlock.def
136 @page
137 @include stdlib/mblen.def
139 @page
140 @include stdlib/mbsnrtowcs.def
142 @page
143 @include stdlib/mbstowcs.def
145 @page
146 @include stdlib/mbtowc.def
148 @page
149 @include stdlib/on_exit.def
151 @page
152 @include search/qsort.def
154 @page
155 @include stdlib/rand.def
157 @page
158 @include stdlib/random.def
160 @page
161 @include stdlib/rand48.def
163 @page
164 @include stdlib/rpmatch.def
166 @page
167 @include stdlib/strtod.def
169 @page
170 @include stdlib/strtol.def
172 @page
173 @include stdlib/strtoll.def
175 @page
176 @include stdlib/strtoul.def
178 @page
179 @include stdlib/strtoull.def
181 @page
182 @include stdlib/wcsnrtombs.def
184 @page
185 @include stdlib/wcstod.def
187 @page
188 @include stdlib/wcstol.def
190 @page
191 @include stdlib/wcstoll.def
193 @page
194 @include stdlib/wcstoul.def
196 @page
197 @include stdlib/wcstoull.def
199 @page
200 @include stdlib/system.def
202 @page
203 @include stdlib/utoa.def
205 @page
206 @include stdlib/wcstombs.def
208 @page
209 @include stdlib/wctomb.def