HP Pascal/iX Programmer's Guide (31502-90023)

4-: 9
Declaration:
FUNCTION argc : integer;
argv Returns a pointer to an array of pointers to the actual
arguments.
Declaration:
FUNCTION argv : argarrayptr;
argn A specific argument, in the form of a Pascal string.
Declaration:
FUNCTION argn (argnum : integer) : String1024;
The predefined module arg is only available on the HP-UX operating
system.
pas_hp1000
The pas_hp1000 module contains routines that help you migrate Pascal/1000
programs to HP Pascal/HP-UX on the HP 9000 Series 700 or 800 machine.
They emulate user-callable routines in the Pascal/1000 run-time library.
The routines in the predefined module pas_hp1000 are:
Routine Effect and Declaration
pas_init_hp1000_args Only for programs running under the RTE shell on the
HP 9000 Series 700 or 800. Using command line
arguments, it sets up an HP-UX-like argument array
for use in argument-accessing routines.
Declaration:
PROCEDURE pas_init_hp1000_args;
pas_parameters Returns a specific argument to the program as a
Pascal PACKED ARRAY OF CHAR.
Declaration:
FUNCTION pas_parameters
( position : shortint;
ANYVAR Parameter : Pas_PAC80; {any PAC}
maxlen : shortint
) : shortint;
pas_sparameters Returns a specific argument to the program as a
Pascal string.
Declaration:
FUNCTION pas_sparameters
( position : shortint;
VAR Parameter : String; {Any string}
) : shortint;
pas_numericparms Interprets the arguments to the program as an array
of numeric strings and returns an array of numbers
corresponding to these strings.
Declaration:
PROCEDURE pas_numericparms
(ANYVAR ParmArray : Pas_ParmArray);