static char sccsid
[] = "@(#)cfgets.c 5.1 (Berkeley) %G%";
* get nonblank, non-comment, (possibly continued) line. Alan S. Watt
for (i
=0,s
=buf
; i
= (fgets (s
, siz
-i
, fil
) != NULL
); i
= s
- buf
) {
/* get last character of line */
c
= s
[len
= (strlen (s
) - 1)];
/* skip comments; make sure end of comment line seen */
while (c
!= EOLN
&& c
!= EOF
)
/* continue lines ending with CONTINUE */
if (c
!= EOLN
|| *--s
!= CONTINUE
)
while (cfgets (buf
, sizeof buf
, stdin
))