This interface provides access to the environment variables given
to a process when it is started (see Process.Create
).
\index{environment variables}
\index{process!environment variables}
INTERFACEEnv ; PROCEDURE Get(nm: TEXT): TEXT;
Return the value of the environment variable whose name is equal tonm
, orNIL
if there is no such variable.
VAR (*CONST*) Count: CARDINAL;
Environment variables are indexed from0
toCount-1
.
PROCEDURE GetNth(n: CARDINAL; VAR (*OUT*) nm, val: TEXT);
Setnm
andval
to the name and value of the environment variable with indexn
. It is a checked runtime error ifn >= Count
.
END Env.