clear EOF and EOLN after performing a seek
[unix-history] / usr / src / usr.bin / pascal / libpc / RSNG4.c
CommitLineData
5546ab1f
KM
1/* Copyright (c) 1979 Regents of the University of California */
2
86997b19 3static char sccsid[] = "@(#)RSNG4.c 1.3 %G%";
5546ab1f 4
5546ab1f 5
492cc5d3 6long
5546ab1f
KM
7RSNG4(value, upper)
8
492cc5d3
KM
9 long value;
10 long upper;
5546ab1f
KM
11{
12 if (value < 0 || value > upper) {
86997b19 13 ERROR("Value of %D is out of range\n", value);
5546ab1f
KM
14 return;
15 }
16 return value;
17}