gets value of environment variable
INCLUDE 'iolib.h' getenv("BINC",Text)
getenv(Var,Text) (i)
string(Var) (i) name of environment variable
string(Text) (o) content of environment variable
Text is matched with the content of the environment variable Var. If Var is not defined in the hosts environment, getenv will fail.
getenv("WORKING_DIR",Dir), cd(Dir).
No runtime errors.
prolog-process, client-server, object
(none)