X-Git-Url: https://git.datadissipation.net/libcext/blobdiff_plain/e778bd0bcc20f7bc4fe76e3c16f83a5a498dcd25..fd4273e5b7249057309c65c78ec1bd766bed03fe:/README.md diff --git a/README.md b/README.md index 59cf6d6..46ea40c 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,24 @@ -A (WIP) collection of portable, strict C99, single-header implementations of common libc extensions. +A (WIP) collection of portable, (mostly) strict C99, single-header implementations of common libc extensions. ### How to Include the header in every file needed as usual: ``` -#include "" +#include ".h" ``` In the file chosen for the function implementation: ``` -#define _IMPLEMENTATION_ +#define _IMPLEMENTATION #include "" ``` -By default, the header won't have any includes, change that with: +By default, the header won't have any stdlib includes, change that with: ``` -#define _INCLUDE_LIBC_ +#define _INCLUDE_LIBC ``` Or disable function override with: @@ -26,3 +26,16 @@ Or disable function override with: ``` #define HAVE_ ``` + +## Specifics + +### getopt\_long + +`getopt_long.h` has additional macros related to argument +permuting, defining those enables it (GNU behaviour): + +``` +#define GETOPT_PERMUTE_ARGS +#define GETOPT_LONG_PERMUTE_ARGS +#define GETOPT_LONG_ONLY_PERMUTE_ARGS +```