DEFINITION MODULE CmdArgs ;
(*
Title : CmdArgs
Author : Gaius Mulley
Date : 7/11/87
LastEdit : 7/11/87
System : UNIX (GNU Modula-2)
Description: CmdArgs - implements procedures to retrieve arguments from
a string.
*)
EXPORT QUALIFIED GetArg, Narg ;
(*
GetArg - returns the nth argument from the command line, CmdLine
the success of the operation is returned.
*)
PROCEDURE GetArg (CmdLine: ARRAY OF CHAR;
n: CARDINAL; VAR Argi: ARRAY OF CHAR) : BOOLEAN ;
(*
Narg - returns the number of arguments available from
command line, CmdLine.
*)
PROCEDURE Narg (CmdLine: ARRAY OF CHAR) : CARDINAL ;
END CmdArgs.