Function
lispworks
environment-variable name => result
A string.
A string ornil.
environment-variable reads the environment variable specified by name and returns its value, ornil if the variable could not be found. setf method is also defined, allowing you to set the value of an environment variable: (setf (environment-variable name) value)
nil then name is removed from the environment table. PATH is returned: (environment-variable "PATH")
"c:\\hqbin\\nt\\x86;c:\\hqbin\\nt\\x86\\perl;c:\\hqbin\\win32;c:\\usr\\local\\bin;C:\\WINNT35\\system32;C:\\WINNT35;;C:\\MSTOOLS\\bin;C:\\TGS3D\\PROGRAM;c:\\program files\\devstudio\\sharedide\\bin\\ide;c:\\program files\\devstudio\\sharedide\\bin;c:\\program files\\devstudio\\vc\\bin;c:\\msdev\\bin;C:\\WINDOWS;C:\\WINDOWS\\COMMAND;C:\\WIN95\\COMMAND;C:\\MSINPUT\\MOUSE"
MYTZONE is found not to be in the environment table: (environment-variable "MYTZONE") NIL
GMT using thesetf method: (setf (environment-variable "MYTZONE") "GMT")