5 This program reads a single line from the standard input
6 and writes it on the standard output. It is probably most useful
7 in conjunction with the Bourne shell.
16 register char *linep
, *linend
;
20 linend
= line
+ LSIZE
;
22 while ((c
= readc()) != nl
)
26 write (1, line
, LSIZE
);
31 write (1, line
, linep
-line
);
33 if (EOF
== 1) exit(1);
39 if (read (0, &c
, 1) != 1) {