xref: /csrg-svn/usr.bin/pascal/libpc/SUBSCZ.c (revision 40865)
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  */
71705Smckusick 
8*40865Sbostic #ifndef lint
9*40865Sbostic static char sccsid[] = "@(#)SUBSCZ.c	1.6 (Berkeley) 04/09/90";
10*40865Sbostic #endif /* not lint */
111705Smckusick 
129136Smckusick extern char ESUBSC[];	/* ESUBSC is defined in SUBSCZ.c */
131705Smckusick 
143032Smckusic long
159136Smckusick SUBSCZ(value, upper)
169136Smckusick 	long		value;
179136Smckusick 	unsigned long	upper;
181705Smckusick {
199136Smckusick 	if (value > upper) {
209136Smckusick 		ERROR(ESUBSC, value);
211705Smckusick 	}
229136Smckusick 	return value;
231705Smckusick }
24