다음: , 이전: , 상위 문서: System Utilities   [차례][찾아보기]


36.7 Environment Variables

getenv (var)

Return the value of the environment variable var.

For example,

getenv ("PATH")

returns a string containing the value of your path.

같이 보기: setenv, unsetenv.

setenv (var, )
setenv (var)
putenv (…)

Set the value of the environment variable var to .

If no is specified then the variable will be assigned the null string.

같이 보기: unsetenv, getenv.

상태 = unsetenv (var)

Delete the environment variable var.

Return 0 if the variable was deleted, or did not exist, and -1 if an error occurred.

같이 보기: setenv, getenv.

homedir = get_home_directory ()

Return the current home directory.

On most systems, this is equivalent to getenv ("HOME"). On Windows systems, if the environment variable HOME is not set then it is equivalent to fullfile (getenv ("HOMEDRIVE"), getenv ("HOMEPATH"))

같이 보기: getenv.