Skip to content

transgirllucy/cotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cotenv.h

Simple single header dotenv library in C

Build Example / Tests

Just compile the build.c or tests.c using

 cc build.c -o build

Quick Example

// 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");
	}
}

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages