home *** CD-ROM | disk | FTP | other *** search
- -h- charcnt.cmd 207
- { charcount -- count characters in standard input }
- procedure charcount;
- var
- nc : integer;
- c : character;
- begin
- nc := 0;
- while (getc(c) <> ENDFILE) do
- nc := nc + 1;
- putdec(nc, 1);
- putc(NEWLINE)
- end;
- -h- charcnt.pas 296
- {$debug-}
- program outer (input,output);
-
- {$include:'globcons.inc'}
- {$include:'globtyps.inc'}
-
- {$include:'initio.dcl'}
- {$include:'getc.dcl' }
- {$include:'putc.dcl' }
- {$include:'putdec.dcl'}
- {$include:'flush.dcl' }
-
- {$include:'charcnt.cmd' }
- BEGIN
- minitio; initio;
- charcount;
- flush(0);
- END.
- -h- charcnt.mak 62
- charcnt+initio+getc+putc+putdec+itoc+getfcb+error+putcf+flush