date and time created 80/10/30 00:36:03 by mckusick
[unix-history] / usr / src / usr.bin / pascal / libpc / LLIMIT.c
CommitLineData
d2b4160b
KM
1/* Copyright (c) 1979 Regents of the University of California */
2
3static char sccsid[] = "@(#)LLIMIT.c 1.1 %G%";
4
5#include "h00vars.h"
6#include "h01errs.h"
7
8LLIMIT(curfile, limit)
9
10 register struct iorec *curfile;
11 int limit;
12{
13 if (limit <= 0)
14 limit = 0x7fffffff;
15 curfile->llimit = limit;
16 if (curfile->lcount >= curfile->llimit) {
17 ERROR(ELLIMIT, curfile->pfname);
18 return;
19 }
20}