getenv

環境変数の取得

getenv p1,"name"

p1 : 結果の文字列が代入される変数
"name" : 環境変数名

(プラグイン / モジュール : hspinet)

解説

環境変数の値を取得し、変数に代入します。
結果は文字列型で代入されます。
変数のバッファは文字列に合わせて自動的に調整されます。

サンプル逆引き (5)

cl_getenv.hsp
cookie_get.hsp
getenv.hsp
hensu.hsp
test8.hsp

情報

プラグイン / モジュールhspinet
バージョン3.31
作成日2012/07/04
著作者onitama
URLhttp://hsp.tv/
備考hspinet.asをインクルードすること。
タイプ拡張命令
グループ拡張入出力制御命令
対応環境
  • Windows 版 HSP
hs ファイルhsphelp\hspinet.hs