solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
Loading...
Searching...
No Matches
include
dotenv.h
Go to the documentation of this file.
1
6
#ifndef DOTENV_H
7
#define DOTENV_H
8
9
#ifdef __cplusplus
10
extern
"C"
{
11
#endif
12
13
#include "
env.h
"
14
15
#include <ctype.h>
16
#include <stdbool.h>
17
#include <stdio.h>
18
#include <stdlib.h>
19
#include <string.h>
20
22
#ifndef MAX_VAR_NAME_LEN
23
#define MAX_VAR_NAME_LEN 256
24
#endif
25
26
// Maximum length of a line in the .env file
27
#ifndef MAX_LINE_LENGTH
28
#define MAX_LINE_LENGTH 1024
29
#endif
30
39
bool
load_dotenv
(
const
char
* path);
40
41
#ifdef __cplusplus
42
}
43
#endif
44
45
#endif
// DOTENV_H
load_dotenv
bool load_dotenv(const char *path)
Definition
dotenv.c:157
env.h
Environment variable utilities and safe access functions.
Generated by
1.9.8