next up previous contents index
Next: Constants Up: The Language Previous: Character Set (3.)   Contents   Index

Standard Names (4.)

The compiler supports two additional standard names, ARGC and ARGV which allow to access the command line arguments:

PROCEDURE ARGC() : CARDINAL;
   (* returns the number of arguments; including the command name *)

PROCEDURE ARGV(VAR arg: ARRAY OF CHAR; index: CARDINAL);
   (* stores the index-th argument (counting from 0) into arg *)

A better interface is provided by the library module Arguments and, well, we know that ARGC and ARGV should have been put into SYSTEM. They are kept as standard names just for upward compatibility and their future use is deprecated.



Andreas Borchert 2003-12-10