<< OS_commands OS_commands getpid >>

Scilab Help >> Input/Output functions > OS_commands > getenv

getenv

環境変数の値を取得

呼び出し手順

env=getenv(str [, rep] )

パラメータ

str

環境変数の名前を指定する文字列

rep

オプションの文字列. このオプションの値を使用する時, 関数 getenv は,環境変数 str が見つからない場合に値 rep を返します.

env

環境変数の値を有する文字列

説明

指定した環境変数が存在する場合,その値を返します.

getenv('SCI')
getenv('FOO','foo')

Report an issue
<< OS_commands OS_commands getpid >>