Skip to content
/ env.h Public

Utilities to nicely interact with the environment variables.

Notifications You must be signed in to change notification settings

4thel00z/env.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

env.h

Table of Contents

Motivation

Utilities to nicely interact with the environment variables.

Installation

clib install 4thel00z/env.h

Usage

#include <env.h>
#include <stdio.h>

int main(){
  printf("Found this val for $HOME: %s\n", env_get_or("HOME", "Kurdistan")); 
  printf("Found this val for $PLAYSTATION: %s\n", env_get_or("PLAYSTATION", "ze truth"));
}

License

This project is licensed under the GPL-3 license.

About

Utilities to nicely interact with the environment variables.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages