Simple single header dotenv library in C
Just compile the build.c or tests.c using
cc build.c -o build
// cotenv.c
#include <stdio.h>
#include "cotenv.h"
int main(int argc, char **argv) {
load_cotenv(".env");
const char *world = getenv("WORLD");
if (world) {
printf("Hello %s", world);
} else {
printf("WORLD not found");
}
}