Skip to content

Commit 39fcbdf

Browse files
[libc][docs] split "String Functions" into string.h, strings.h, stdlib.h, and inttypes.h
bcmp, bcopy, and bzero should be moved from libc/src/string/ to lib/src/strings/ in order for docgen to use existing conventions to find whether we implement a function or not. We should add support to docgen for mentioning glibc extensions (mempcpy) or extensions from other libcs.
1 parent fdb8898 commit 39fcbdf

File tree

9 files changed

+791
-164
lines changed

9 files changed

+791
-164
lines changed

libc/docs/headers/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ Implementation Status
99
ctype
1010
errno
1111
fenv
12+
inttypes
1213
locale
1314
math/index.rst
1415
search
1516
setjmp
1617
signal
1718
stdbit
1819
stdio
20+
stdlib
21+
string
1922
strings
2023
threads
2124
time

libc/docs/headers/inttypes.rst

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.. include:: ../check.rst
2+
3+
==========
4+
inttypes.h
5+
==========
6+
7+
Functions
8+
=========
9+
10+
.. list-table::
11+
:widths: auto
12+
:align: center
13+
:header-rows: 1
14+
15+
* - Function
16+
- Implemented
17+
- C23 Standard Section
18+
- POSIX.1-2024 Standard Section
19+
* - imaxabs
20+
- |check|
21+
- 7.8.2.1
22+
-
23+
* - imaxdiv
24+
- |check|
25+
- 7.8.2.2
26+
-
27+
* - strtoimax
28+
- |check|
29+
- 7.8.2.3
30+
-
31+
* - strtoumax
32+
- |check|
33+
- 7.8.2.3
34+
-
35+
* - wcstoimax
36+
-
37+
- 7.8.2.4
38+
-
39+
* - wcstoumax
40+
-
41+
- 7.8.2.4
42+
-

libc/docs/headers/stdlib.rst

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
.. include:: ../check.rst
2+
3+
========
4+
stdlib.h
5+
========
6+
7+
Macros
8+
======
9+
10+
.. list-table::
11+
:widths: auto
12+
:align: center
13+
:header-rows: 1
14+
15+
* - Macro
16+
- Implemented
17+
- C23 Standard Section
18+
- POSIX.1-2024 Standard Section
19+
* - EXIT_FAILURE
20+
- |check|
21+
- 7.24
22+
-
23+
* - EXIT_SUCCESS
24+
- |check|
25+
- 7.24
26+
-
27+
* - MB_CUR_MAX
28+
- |check|
29+
- 7.24
30+
-
31+
* - RAND_MAX
32+
- |check|
33+
- 7.24
34+
-
35+
* - __STDC_VERSION_STDLIB_H__
36+
-
37+
- 7.24
38+
-
39+
40+
Functions
41+
=========
42+
43+
.. list-table::
44+
:widths: auto
45+
:align: center
46+
:header-rows: 1
47+
48+
* - Function
49+
- Implemented
50+
- C23 Standard Section
51+
- POSIX.1-2024 Standard Section
52+
* - _Exit
53+
- |check|
54+
- 7.24.4.5
55+
-
56+
* - abort
57+
- |check|
58+
- 7.24.4.1
59+
-
60+
* - abs
61+
- |check|
62+
- 7.24.6.1
63+
-
64+
* - aligned_alloc
65+
- |check|
66+
- 7.24.3.1
67+
-
68+
* - at_quick_exit
69+
- |check|
70+
- 7.24.4.3
71+
-
72+
* - atexit
73+
- |check|
74+
- 7.24.4.2
75+
-
76+
* - atof
77+
- |check|
78+
- 7.24.1.1
79+
-
80+
* - atoi
81+
- |check|
82+
- 7.24.1.2
83+
-
84+
* - atol
85+
- |check|
86+
- 7.24.1.2
87+
-
88+
* - atoll
89+
- |check|
90+
- 7.24.1.2
91+
-
92+
* - bsearch
93+
- |check|
94+
- 7.24.5.1
95+
-
96+
* - calloc
97+
- |check|
98+
- 7.24.3.2
99+
-
100+
* - div
101+
- |check|
102+
- 7.24.6.2
103+
-
104+
* - exit
105+
- |check|
106+
- 7.24.4.4
107+
-
108+
* - free
109+
- |check|
110+
- 7.24.3.3
111+
-
112+
* - free_aligned_sized
113+
-
114+
- 7.24.3.5
115+
-
116+
* - free_sized
117+
-
118+
- 7.24.3.4
119+
-
120+
* - getenv
121+
- |check|
122+
- 7.24.4.6
123+
-
124+
* - labs
125+
- |check|
126+
- 7.24.6.1
127+
-
128+
* - ldiv
129+
- |check|
130+
- 7.24.6.2
131+
-
132+
* - llabs
133+
- |check|
134+
- 7.24.6.1
135+
-
136+
* - lldiv
137+
- |check|
138+
- 7.24.6.2
139+
-
140+
* - malloc
141+
- |check|
142+
- 7.24.3.6
143+
-
144+
* - mblen
145+
-
146+
- 7.24.7.1
147+
-
148+
* - mbstowcs
149+
-
150+
- 7.24.8.1
151+
-
152+
* - mbtowc
153+
-
154+
- 7.24.7.2
155+
-
156+
* - memalignment
157+
-
158+
- 7.24.9.1
159+
-
160+
* - qsort
161+
- |check|
162+
- 7.24.5.2
163+
-
164+
* - quick_exit
165+
- |check|
166+
- 7.24.4.7
167+
-
168+
* - rand
169+
- |check|
170+
- 7.24.2.1
171+
-
172+
* - realloc
173+
- |check|
174+
- 7.24.3.7
175+
-
176+
* - srand
177+
- |check|
178+
- 7.24.2.2
179+
-
180+
* - strfromd
181+
- |check|
182+
- 7.24.1.3
183+
-
184+
* - strfromd128
185+
-
186+
- 7.24.1.4
187+
-
188+
* - strfromd32
189+
-
190+
- 7.24.1.4
191+
-
192+
* - strfromd64
193+
-
194+
- 7.24.1.4
195+
-
196+
* - strfromf
197+
- |check|
198+
- 7.24.1.3
199+
-
200+
* - strfroml
201+
- |check|
202+
- 7.24.1.3
203+
-
204+
* - strtod
205+
- |check|
206+
- 7.24.1.5
207+
-
208+
* - strtod128
209+
-
210+
- 7.24.1.6
211+
-
212+
* - strtod32
213+
-
214+
- 7.24.1.6
215+
-
216+
* - strtod64
217+
-
218+
- 7.24.1.6
219+
-
220+
* - strtof
221+
- |check|
222+
- 7.24.1.5
223+
-
224+
* - strtol
225+
- |check|
226+
- 7.24.1.7
227+
-
228+
* - strtold
229+
- |check|
230+
- 7.24.1.5
231+
-
232+
* - strtoll
233+
- |check|
234+
- 7.24.1.7
235+
-
236+
* - strtoul
237+
- |check|
238+
- 7.24.1.7
239+
-
240+
* - strtoull
241+
- |check|
242+
- 7.24.1.7
243+
-
244+
* - system
245+
- |check|
246+
- 7.24.4.8
247+
-
248+
* - wcstombs
249+
-
250+
- 7.24.8.2
251+
-
252+
* - wctomb
253+
-
254+
- 7.24.7.3
255+
-

0 commit comments

Comments
 (0)