initial public commit
[libcext.git] / README.md
1 A (WIP) collection of portable, strict C99, single-header implementations of common libc extensions.
2
3 ### How to
4
5 Include the header in every file needed as usual:
6
7 ```
8 #include "<ext-func-name.h>"
9 ```
10
11 In the file chosen for the function implementation:
12
13 ```
14 #define <EXT-FUNC-NAME>_IMPLEMENTATION_
15 #include "<ext-func-name.h>"
16 ```
17
18 By default, the header won't have any includes, change that with:
19
20 ```
21 #define <EXT-FUNC-NAME>_INCLUDE_LIBC_
22 ```
23
24 Or disable function override with:
25
26 ```
27 #define HAVE_<EXT-FUNC-NAME>
28 ```