/libdotenv

libdotenv is a C single-headerlibrary providing the ability to load values from a .env file into environment variables.

Primary LanguageCBSD 2-Clause "Simplified" LicenseBSD-2-Clause

libdotenv

Build Status

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.

Features

  • 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

Contributing

Please feel free to open a PR!

License

libdotenv source code is available under the BSD 2 clause License.

Contact

@bdowns328