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.