Commit | Line | Data |
---|---|---|
e4c76c24 KM |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
ee846798 | 5 | .\" @(#)getarg.3 6.1 (Berkeley) %G% |
e4c76c24 | 6 | .\" |
ee846798 | 7 | .TH GETARG 3F "" |
e4c76c24 KM |
8 | .UC 4 |
9 | .SH NAME | |
0c594faf | 10 | getarg, iargc \- return command line arguments |
e4c76c24 | 11 | .SH SYNOPSIS |
0c594faf KM |
12 | .B subroutine getarg (k, arg) |
13 | .br | |
14 | .B character*(*) arg | |
15 | .sp 1 | |
16 | .B function iargc () | |
e4c76c24 | 17 | .SH DESCRIPTION |
0c594faf KM |
18 | A call to |
19 | .I getarg | |
20 | will return the \fBk\fIth\fR command line argument in character string | |
21 | .I arg. | |
22 | The 0\fIth\fR argument is the command name. | |
e4c76c24 | 23 | .PP |
0c594faf KM |
24 | .I Iargc |
25 | returns the index of the last command line argument. | |
26 | .SH FILES | |
27 | .ie \nM /usr/ucb/lib/libU77.a | |
28 | .el /usr/lib/libU77.a | |
e4c76c24 | 29 | .SH "SEE ALSO" |
0c594faf | 30 | getenv(3F), execve(2) |