home *** CD-ROM | disk | FTP | other *** search
- -h- echoarg.cmd 309
- { echo -- echo command line arguments to output }
- procedure echo;
- var
- i, j : integer;
- argstr : string;
- begin
- i := 1;
- while (getarg(i, argstr, MAXSTR)) do begin
- if (i > 1) then
- putc(BLANK);
- for j := 1 to length(argstr) do
- putc(argstr[j]);
- i := i + 1
- end;
- if (i > 1) then
- putc(NEWLINE)
- end;
- -h- echoarg.pas 294
- {$debug-}
- program outer (input,output);
-
- {$include:'globcons.inc'}
- {$include:'globtyps.inc'}
-
- {$include:'initio.dcl'}
- {$include:'getarg.dcl'}
- {$include:'putc.dcl' }
- {$include:'length.dcl'}
- {$include:'flush.dcl' }
-
- {$include:'echoarg.cmd' }
- BEGIN
- minitio; initio;
- echo;
- flush(0);
- END.
- -h- echoarg.mak 66
- echoarg+initio+getfcb+error+getarg+nargs+putc+putcf+
- length+flush