1*40865Sbostic /*- 2*40865Sbostic * Copyright (c) 1979 The Regents of the University of California. 3*40865Sbostic * All rights reserved. 4*40865Sbostic * 5*40865Sbostic * %sccs.include.redist.c% 6*40865Sbostic */ 71678Smckusick 8*40865Sbostic #ifndef lint 9*40865Sbostic static char sccsid[] = "@(#)RANG4.c 1.6 (Berkeley) 04/09/90"; 10*40865Sbostic #endif /* not lint */ 111678Smckusick 129136Smckusick char ERANG[] = "Value of %D is out of range\n"; 131678Smckusick 143018Smckusic long 151678Smckusick RANG4(value, lower, upper) 163018Smckusic long value; 173018Smckusic long lower; 183018Smckusic long upper; 191678Smckusick { 201678Smckusick if (value < lower || value > upper) { 219136Smckusick ERROR(ERANG, value); 221678Smckusick } 231678Smckusick return value; 241678Smckusick } 25