>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  GETENV2
Libraries

GETENV2

GETENV2

Name


      GETENV2

Purpose


      Version of getenv portable across operating systems.

Category


Calling Sequence


      val = getenv(var)

Inputs


      var = Name of environmental variable. in

Keyword Parameters


Keywords


        LIST=v 1 means list source, else 0 (default).
          Remembers last setting during session.

Outputs


      val = Returned value of requested variable. out
            Null string if variable not found.

Common Blocks


      getenv2_com

Notes


      Notes: The requested variable may either be an actual
      environmental variable, or the contents of a file with
      that name located in !base_dir. The second case is portable
      across operating systems. Just define !base_dir in your
      IDL startup file to point to some directory. Example:
        defsysv, '!base_dir', '/homes/sterner/idl/base_dir', 1
      The value from !base_dir takes precedence.

Modification History


      R. Sterner, 1998 Mar 18
      R. Sterner, 1998 May 18 --- fixed to work if !base_dir not defined.
      R. Sterner, 2010 May 23 --- Converted arrays from () to [].
  Copyright (C) 1998, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us