🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.fortran
1 messages
1 total messages Started by Bruno W. Repetto Wed, 27 Jan 1993 15:47
Re: How to get command line arguments from unix with FORTRAN?
#4530
Author: Bruno W. Repetto
Date: Wed, 27 Jan 1993 15:47
31 lines
2185 bytes
Excerpts from netnews.comp.lang.fortran: 26-Jan-93 Re: How to get
command line.. by Pat Murphy@nrao.edu 
> From: pmurphy@nrao.edu (Pat Murphy)
> Subject: Re: How to get command line arguments from unix with FORTRAN?
> Date: Tue, 26 Jan 1993 17:18:47 GMT
>  
[Stuff deleted.]

> A brief experiment with telnet shows that his posting machine is not a
> Sun: "ULTRIX V4.2A (Rev. 47)".  My f77 info for Ultrix (4.0),
> fortunately shows getarg identical to the above.  However I know that
> for other flavors of unix it is different.  For example, HP-UX uses a
> function IGETARG with three arguments.

My guess is that it works as in Microsoft Fortran, versions 5. or better:
The first argument is the argument number, integer.
The second is the argument itself, a char.
The third one is the lenght of the argument, integer.

In some systems, the first argument is the program name.  Careful with this.

Bruno.  br0w+@andrew.cmu.edu
>                                 - Pat
> --
> ==========================================================================
> | Patrick P. Murphy, Ph.D.                Scientific Programming Analyst |
> | National Radio Astronomy Observatory    Net:       pmurphy@nrao.edu    |
> | 520 Edgemont Road                       Phone:     (804) 296-0372      |
> | Charlottesville, VA 22903-2475          VoiceMail: (804) 980-5889      |
> |      "I don't believe in the no-win scenario"  --- James T. Kirk       |
> ==========================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads