xref: /original-bsd/share/man/man3f/getarg.3 (revision 2301fdfb)
Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)getarg.3 6.1 (Berkeley) 05/15/85

GETARG 3F ""
C 4
NAME
getarg, iargc - return command line arguments
SYNOPSIS
subroutine getarg (k, arg)

character*(*) arg function iargc ()

DESCRIPTION
A call to getarg will return the kth command line argument in character string arg. The 0th argument is the command name.

Iargc returns the index of the last command line argument.

FILES
"SEE ALSO"
getenv(3F), execve(2)