Skip to content

C library for loading environment variables from .env files

Notifications You must be signed in to change notification settings

MihajloVelickovic/CEnv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CEnv

Simple C library used to load environment variables from .env files

Main functions:

load_env_vars(const char* path);
unload_env_vars();

path needs to be an absolute path, get it with

char* realpath(const char* relPath, char* absPath);

on *nix systems

or with

char* __fullpath(char* absPath, const char* relPath, size_t maxLen);

on Windows

Make sure to call unload_env_paths(); at the end to free up malloc-ed memory!

About

C library for loading environment variables from .env files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published