xref: /original-bsd/usr.bin/pascal/libpc/RSNG4.c (revision f0fd5f8a)
1 /* Copyright (c) 1979 Regents of the University of California */
2 
3 static char sccsid[] = "@(#)RSNG4.c 1.4 11/12/82";
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 		return;
15 	}
16 	return	value;
17 }
18