Modula-2 || Compiler & Tools || Library || Search Engine


Ulm's Modula-2 Library:
ARGC


NAME

ARGC, ARGV - get command line arguments

SYNOPSIS

PROCEDURE ARGC() : CARDINAL;
PROCEDURE ARGV(VAR buffer: ARRAY OF CHAR; argindex: CARDINAL);

DESCRIPTION

These procedures belong to the standard procedures and needn't to be imported.

ARGC returns the number of command line arguments (incl. command name).

ARGV stores a single command line argument addressed by argindex (ranging from 0 to ARGC()-1) into buffer.

Note that these procedures are inherently inportable and that Arguments should be used instead.

BUGS

ARGC and ARGV should have been put into SYSTEM.
Edited by: borchert, last change: 1997/02/25, revision: 1.2, converted to HTML: 1997/04/28

Modula-2 || Compiler & Tools || Library || Search Engine