X-Git-Url: https://git.datadissipation.net/libcext/blobdiff_plain/5677abe79fa7c55501bc1fb545caf30cf5fda34c..576f1e91efe7bbb49a5682903b23d6d37b6b6725:/README.md diff --git a/README.md b/README.md index a5126fd..8324035 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -A (WIP) collection of portable, strict C99, single-header implementations of common libc extensions. +A collection of portable, strict C99, single-header implementations of common libc extensions. All functions are implemented as macros expanding to an internal function reference, this allows to use the headers with no meta build system - it compiles even if the extensions are already present, see _How to_ on disabling this behaviour. @@ -39,6 +39,12 @@ includes `vasprintf()` and `asprintf()` --- +### fgetln + +includes `fgetln()` + +--- + ### getopt\_long includes `getopt()`, `getsubopt()`, `getopt_long()` and `getopt_long_only()` @@ -54,8 +60,21 @@ permuting, defining those enables it per function (GNU behaviour, can still be d --- +### strdup + +includes `strdup()` and `strndup()` + +`strndup()` follows the latest standard, meaning that it copies at most _n_ chars, not _n_ + 1. +Also, no standard specifies that `strndup()` should return less than _n_ if `strlen(s) + 1` < _n_, but this implementation does so. + +--- + ### strlcat includes `strlcat()` and `strlcpy()` --- + +### strtonum + +includes `strtonum()`