xref: /csrg-svn/usr.bin/pascal/libpc/SUBSCZ.c (revision 62096)
140865Sbostic /*-
2*62096Sbostic  * Copyright (c) 1979, 1993
3*62096Sbostic  *	The Regents of the University of California.  All rights reserved.
440865Sbostic  *
540865Sbostic  * %sccs.include.redist.c%
640865Sbostic  */
71705Smckusick 
840865Sbostic #ifndef lint
9*62096Sbostic static char sccsid[] = "@(#)SUBSCZ.c	8.1 (Berkeley) 06/06/93";
1040865Sbostic #endif /* not lint */
111705Smckusick 
129136Smckusick extern char ESUBSC[];	/* ESUBSC is defined in SUBSCZ.c */
131705Smckusick 
143032Smckusic long
SUBSCZ(value,upper)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