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