home *** CD-ROM | disk | FTP | other *** search
- { (C) Copyright 1986-1992 MetaWare Incorporated; Santa Cruz, CA 95060. }
-
- pragma c_include('implement.pf');
- package Arg;
- pragma Routine_aliasing_convention(Implement.RTE_aliasing);
- {
- Routines to read command parameters
- }
-
- function Argc():Cardinal; external;
- {Returns the number of command parameters}
-
- type Argv_type = String(100);
-
- function Argv(I: Cardinal): Argv_type; external;
- {Returns the Ith command parameter}
- {NOTE: Under DOS versions 3.0 and higher, Argv(0) returns
- the name of the program. For other DOS versions, Argv(0)
- returns the null string.}
-
- { Arguments can be quoted if Arg_quote_char <> space, tab, or comma. }
- { To denote a quote within an argument, use the quote character twice. }
- { By default the Arg_quote_char is blank. }
-
- var Arg_quote_char: char;
-
- type Args_type = String(256);
-
- function Args:Args_type; external;
- {Returns the entire command parameter string}
- end;
- pragma Alias(Arg,Implement.RTE || 'arg');
-