shithub: mc

ref: 85b45ea79140abbf66a2a3c1c7a89476697c8654
dir: /libstd/env.myr/

View raw version
use "sleq.use"

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

extern var _environment	: byte[:][:]

const getenv = {
	var i
	var env

	for i = 0; i < _environment.len; i++
		if !sleq(