/
index
/
libcext.git
/ blobdiff
commit
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add getsubopt, improve override macros
[libcext.git]
/
README.md
diff --git
a/README.md
b/README.md
index 46ea40c2336230ebc9219165f636fda5a8a6470e..a506381c9a06eb3e0c9e0e73d1bd014082a641ff 100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-1,4
+1,4
@@
-A (WIP) collection of portable,
(mostly)
strict C99, single-header implementations of common libc extensions.
+A (WIP) collection of portable, strict C99, single-header implementations of common libc extensions.
### How to
### How to
@@
-21,21
+21,34
@@
By default, the header won't have any stdlib includes, change that with:
#define <EXT-FUNC-NAME>_INCLUDE_LIBC
```
#define <EXT-FUNC-NAME>_INCLUDE_LIBC
```
-Or disable function override with:
+Or disable function
, type and variable
override with:
```
#define HAVE_<EXT-FUNC-NAME>
```
```
#define HAVE_<EXT-FUNC-NAME>
```
-## Specifics
+### Specifics
+
+---
+
+### asprintf
+
+includes `vasprintf()` and `asprintf()`
+
+---
### getopt\_long
### getopt\_long
+includes `getopt()`, `getsubopt()`, `getopt_long()` and `getopt_long_only`
+
`getopt_long.h` has additional macros related to argument
`getopt_long.h` has additional macros related to argument
-permuting, defining those enables it (GNU behaviour):
+permuting, defining those enables it (GNU behaviour
, will still be disabled with `$POSIXLY_CORRECT` set
):
```
#define GETOPT_PERMUTE_ARGS
#define GETOPT_LONG_PERMUTE_ARGS
#define GETOPT_LONG_ONLY_PERMUTE_ARGS
```
```
#define GETOPT_PERMUTE_ARGS
#define GETOPT_LONG_PERMUTE_ARGS
#define GETOPT_LONG_ONLY_PERMUTE_ARGS
```
+
+---
+