xref: /csrg-svn/usr.bin/pascal/libpc/RSNG4.c (revision 36533)
1 /* Copyright (c) 1979 Regents of the University of California */
2 
3 static char sccsid[] = "@(#)RSNG4.c 1.5 01/09/89";
4 
5 extern char ERANG[];	/* ERANG is defined in RANG4.c */
6 
7 long
8 RSNG4(value, upper)
9 	long		value;
10 	unsigned long	upper;
11 {
12 	if (value > upper) {
13 		ERROR(ERANG, value);
14 	}
15 	return	value;
16 }
17