1 A (WIP) collection of portable, (mostly) strict C99, single-header implementations of common libc extensions.
5 Include the header in every file needed as usual:
8 #include "<ext-func-name>.h"
11 In the file chosen for the function implementation:
14 #define <EXT-FUNC-NAME>_IMPLEMENTATION
15 #include "<ext-func-name.h>"
18 By default, the header won't have any stdlib includes, change that with:
21 #define <EXT-FUNC-NAME>_INCLUDE_LIBC
24 Or disable function override with:
27 #define HAVE_<EXT-FUNC-NAME>
34 `getopt_long.h` has additional macros related to argument
35 permuting, defining those enables it (GNU behaviour):
38 #define GETOPT_PERMUTE_ARGS
39 #define GETOPT_LONG_PERMUTE_ARGS
40 #define GETOPT_LONG_ONLY_PERMUTE_ARGS