Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 818 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 818 Bytes

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.