|
solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
|
Environment variable loading from .env files. More...
#include "env.h"#include <ctype.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | MAX_VAR_NAME_LEN 256 |
Functions | |
| bool | load_dotenv (const char *path) |
Environment variable loading from .env files.
Definition in file dotenv.h.
| #define MAX_VAR_NAME_LEN 256 |
| bool load_dotenv | ( | const char * | path | ) |
Load .env file and populate set environment variables from the file. Supports variable expansion with syntax but the variables must be defined before being used.
| path | The path to the .env file. Must not be NULL. |
Definition at line 157 of file dotenv.c.
References load_dotenv().
Referenced by load_dotenv().