.env Loader
Loading...
Searching...
No Matches
env.h
Go to the documentation of this file.
1#ifndef ENV_H
2#define ENV_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
13 int env_load(const char* path);
14
20 const char* env_get(const char* key);
21
27 int env_inject_all(int overwrite);
28
32 void env_free(void);
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif
void env_free(void)
Free all loaded environment variable data.
Definition env.c:200
int env_load(const char *path)
Load environment variables from a .env file.
Definition env.c:120
int env_inject_all(int overwrite)
Inject all loaded environment variables into the process environment.
Definition env.c:189
const char * env_get(const char *key)
Get value of a loaded environment variable.
Definition env.c:155