1 /* Copyright (c) 1979 Regents of the University of California */ 2 3 static char sccsid[] = "@(#)RANG4.c 1.2 03/07/81"; 4 5 #include "h01errs.h" 6 7 long 8 RANG4(value, lower, upper) 9 10 long value; 11 long lower; 12 long upper; 13 { 14 if (value < lower || value > upper) { 15 ERROR(ERANGE, value); 16 return; 17 } 18 return value; 19 } 20