fn: getenv
[contents]

Contents

Syntax

The syntax for getenv calls is:

f++:  
getenv(string)

n++:  
@getenv(string)

Description

The getenv function takes a single string parameter specifying an environment variable name and returns the value of the environment variable as a string.

f++ example

Example of getenv being used with f++:

getenv("PATH")

n++ example

Example of dep being used with n++:

@getenv("PATH")

Sponsors