shithub: mc

ref: 2ddd271457de28b6052974db29927102f90201a2
dir: /libstd/env+plan9.myr/

View raw version
use sys

use "extremum.use"
use "option.use"
use "sleq.use"

pkg std =
	const getenv :	(name : byte[:] -> option(byte[:]))
	const getenvv :	(name : byte[:], default : byte[:] -> byte[:])
;;

const getenv = {name
	-> `None
}

const getenvv = {name, default
	-> default
}