Mwnci getenv() Function

Syntax

getenv(key)

Description

The getenv() function retrieves the value of the environment variable named by the key. It returns the value, which will be empty if the variable is not present.

Example

println("Home directory is: ", getenv("HOME"))


Home directory is: /home/eccles