Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- getarg

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
getarg
Synopsis
/infobank/programs/share/getarg.for
Description
  Subroutine to return specified argument from a command line.

       
USAGE
  call getarg (ArgumentNumber, Argument)

    
  where the "Argument" that corresponds with the "ArgumentNumber"
    is returned.
 
  Note: ArgumentNumber of -2 returns input  filename
        ArgumentNumber of -1 returns output filename
        ArgumentNumber of  0 returns program/.com name
    
SEE_ALSO
  IARGC

  UNIX   (in drs$util)
    
AUTHOR
  Clint Steele    11/10/88    .for

  Carolyn Degnan    9/23/04    Added implicit none

    
Reads
          read (77, '(i)', end = 99) ArgumentCount
              read (77, '(a)', end = 99) Argument
Writes
Opens
      open (unit            = 77,
     *      name            = TempFile,
     *      status          = 'OLD',
Calls
      call getprcnam (ProcessName)
      call stringlen (ProcessName, ProcessLength)

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/getarg.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:36:58 PDT 2013  (chd)