shithub: mc

Download patch

ref: e51bd5951d76f015665a8c6a7ff060c1063d9df4
parent: 422bc7217a71af4a1485202bb1870d40fd504870
parent: 85b45ea79140abbf66a2a3c1c7a89476697c8654
author: Ori Bernstein <[email protected]>
date: Mon Aug 26 16:21:26 EDT 2013

Merge branch 'master' of git+ssh://git.eigenstate.org/git/ori/mc

--- /dev/null
+++ b/libstd/env.myr
@@ -1,0 +1,14 @@
+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(