getenv

BAP Online Manuals : Library Reference : Library by Name : getenv
Previous: get_my_ids
Next: getprofile

6.2.68. getenv

gets value of environment variable

SYNOPSIS

INCLUDE 'iolib.h'
getenv("BINC",Text)

SYNTAX

 getenv(Var,Text) (i)

ARGUMENTS

string(Var) (i) name of environment variable
string(Text) (o) content of environment variable

DESCRIPTION

Text is matched with the content of the environment variable Var. If Var is not defined in the hosts environment, getenv will fail.

EXAMPLE

getenv("WORKING_DIR",Dir),
cd(Dir).

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

(none)


BAP Online Manuals : Library Reference : Library by Name : getenv
Previous: get_my_ids
Next: getprofile