The intention behind this is so that cut can be implemented as a small
state machine using just getchar, putchar, and a counter.
I wrote `lcut' first, then adapted it for `cut'.
This avoids
copying via a line buffer, and that implies there should be no line-length
limit.
zgetline has no line length limit.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/