Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- getsymbol

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
getsymbol
Synopsis
/infobank/programs/share/getsymbol.for
Description
  Subroutine to return value and length of a symbol.

       
USAGE
  "a" = argument, "r" = referenced, "s" = set

  call getsymbol                        (with the following arguments)
         Symbol                      [variable char*(*) a]
         SymbolValue                 [variable char*(*) as]
         LengthSymbol                [variable i*4 as]
  Input:
    Symbol = symbol name to be translated.
  Output:
    SymbolValue   = character string value of Symbol.
    LengthSymbol  = integer number of characters in SymbolValue.
    
SUBROUTINES
  getenv

    
FUNCTIONS
  char                (FORTRAN intrinsic function)  

    
DISCLAIMER
  Although this program has been used by the U.S. Geological Survey,

  no warranty, expressed or implied, is made by the Survey as to the
  accuracy and functioning of the program and related program
  material nor shall the fact of distribution constitute any such
  warranty, and no responsibility is assured by the Survey in
  connection therewith.
    
AUTHOR
  Clint Steele           5/10/84                .for

    based on subroutine from DECUS tapes on VAXNET.
  Ed Maple               1/15/88
    Modified for UNIX compatibility. Also changed LIB$GETSYMBOL to
    be a subroutine call rather than a function call.
  Jean Riordan           2/17/88
    Modified for DRS$SHARE cleanup & UNIX compatibility
  Clint Steele   12/4/95    Removed VMS capability
  Carolyn Degnan    9/23/04    Added implicit none.
    
Reads
Writes
Opens
Calls
      call getenv (Symbol, SymbolValue)
      call stringlen (SymbolValue, LengthSymbol)

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/share/getsymbol.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:36:52 PDT 2013  (chd)