BSD 1 development
[unix-history] / tests / t16.p
CommitLineData
fde98a2d
BJ
1program main(input, output);
2procedure copy(inp, out: text);
3 var
4 c: char;
5 begin
6 while not eof(inp) do
7 begin
8 while not eoln(inp) do
9 begin
10 c := inp^;
11 out^ := c;
12 put(out);
13 get(inp);
14 end;
15 writeln;
16 get(inp);
17 end;
18 end;
19begin
20 copy(input, output);
21end.