Sitelet https://github.com/4thel00z/env.h
Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages