Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語
Справка Scilab >> Input/Output functions > getenv

getenv

get the value of an environment variable

Syntax

env=getenv(str [, defaultReturn] )

Arguments

str

character string specifying environment variable name

defaultReturn

an optional character string. When this optional value is used, the function getenv returns the value defaultReturn when the environment variable str is not found.

env

character string which contain the environment variable value

Description

Return the value of an environment variable if it exists.

Examples

getenv('SCI')
getenv('FOO','foo')
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:48:32 CEST 2016