|
htils 1
A small set of utilities for C programming.
|
Go to the source code of this file.
Functions | |
| i32 | htils_dotenv_load (arena_t *arena, const string *path) |
| Load environment variables from a .env file. | |
Load environment variables from a .env file.
Parses KEY=VALUE lines and sets each as a process environment variable with setenv() (overwriting). path may be the .env file itself, or a directory containing one, in which case the first .env found is used.
| arena | The arena to allocate from. |
| path | The .env file, or a directory to search for one. |
path and arena must be valid and not null.path must exist.