libdotenv is a C library providing the ability to load values from a .env file into environment variables.
An example can be found in the examples directory.
- Ignores lines starting with whitespace
- Ignores lines starting with whitespace
# - Empty values become empty strings
- Whitespace is removed from start and end of unquoted strings
- Single quoted strings are replaced to double quoted
- Quoted values maintain their whitespace
Please feel free to open a PR!
libdotenv source code is available under the BSD 2 clause License.