2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
8 #include "../h/iobuf.h"
9 /* return one line using getc, caller must supply iobuf pointer, */
10 /* line buffer, and max. count */
11 /* returns actual char count */
23 while ((c
= getc(bufp
)) >= 0) {
25 if (--cc
<= 0 || c
== '\n') break;