Copyright (C) 1994, Digital Equipment Corp. INTERFACEThis interface exports a procedural interface to the command line arguments/environment variable store, that is independent of the underlying representation.RTArgs ;
PROCEDURE ArgC (): CARDINAL;
Returns the number of command line arguments, less those reserved by the M3 runtime.
PROCEDURE GetArg (n: CARDINAL): TEXT;
Returns then
th argument. It is a checked runtime error ifn >= ArgC ()
.
PROCEDURE EnvC (): CARDINAL;
Returns the count of environment variables.
PROCEDURE GetEnv (n: CARDINAL): TEXT;
Returns then
th environment variable. It is a checked runtime error ifn >= EnvC ()
.
END RTArgs.