Annotation of researchv10dc/man/adm/man3/getarg.3, revision 1.1.1.1

1.1       root        1: .TH GETARG 3F
                      2: .CT 2 data_man
                      3: .SH NAME
                      4: getarg, iargc \(mi command arguments to Fortran
                      5: .SH SYNOPSIS
                      6: .nf
                      7: .B subroutine getarg(argno, string)
                      8: .B integer argno
                      9: .B character *(*) string
                     10: .PP
                     11: .B iargc()
                     12: .fi
                     13: .SH DESCRIPTION
                     14: These procedures permit Fortran programs to access the command arguments.
                     15: The integer function
                     16: .I iargc
                     17: returns the number of command arguments.
                     18: The subroutine
                     19: .I getarg
                     20: stores the
                     21: .IR argno th
                     22: command argument in its second argument.
                     23: The string is truncated or padded with blanks,
                     24: in accord with the rules of Fortran character assignment.
                     25: .SH EXAMPLES
                     26: .TP
                     27: .L
                     28: a.out arg1 arg2
                     29: In a program invoked this way
                     30: .I iargc
                     31: will return 2.
                     32: .TP
                     33: .L
                     34: character*4 s
                     35: .br
                     36: .ns
                     37: .TP
                     38: .L
                     39: call getarg(2, s)
                     40: Place
                     41: .L arg2
                     42: in
                     43: .I s.
                     44: .SH "SEE ALSO"
                     45: .IR exec (2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.