/* Copyright (c) 1979 Regents of the University of California */
static char sccsid
[] = "@(#)WRITLN.c 1.1 %G%";
register struct iorec
*curfile
;
if (curfile
->funit
& FREAD
) {
ERROR(EWRITEIT
, curfile
->pfname
);
if (++curfile
->lcount
>= curfile
->llimit
) {
ERROR(ELLIMIT
, curfile
->pfname
);
fputc('\n', curfile
->fbuf
);
if (ferror(curfile
->fbuf
)) {
ERROR(EWRITE
, curfile
->pfname
);