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 */ 71675Smckusick 8*40865Sbostic #ifndef lint 9*40865Sbostic static char sccsid[] = "@(#)PRED.c 1.6 (Berkeley) 04/09/90"; 10*40865Sbostic #endif /* not lint */ 111675Smckusick 123017Smckusic long 131675Smckusick PRED(value, lower, upper) 141675Smckusick 153017Smckusic long value; 163017Smckusic long lower; 173017Smckusic long upper; 181675Smckusick { 193858Smckusic if (value == lower) { 203858Smckusic ERROR("Cannot take pred of first element of a range\n"); 213858Smckusic } 221675Smckusick value--; 231675Smckusick if (value < lower || value > upper) { 243858Smckusic ERROR("Value of %D is out of range\n", value); 251675Smckusick } 261675Smckusick return value; 271675Smckusick } 28