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 */ 71698Smckusick 840865Sbostic #ifndef lint 9*62096Sbostic static char sccsid[] = "@(#)RSNG4.c 8.1 (Berkeley) 06/06/93"; 1040865Sbostic #endif /* not lint */ 111698Smckusick 129136Smckusick extern char ERANG[]; /* ERANG is defined in RANG4.c */ 131698Smckusick 143029Smckusic long RSNG4(value,upper)151698SmckusickRSNG4(value, upper) 169136Smckusick long value; 179136Smckusick unsigned long upper; 181698Smckusick { 199136Smckusick if (value > upper) { 209136Smckusick ERROR(ERANG, value); 211698Smckusick } 221698Smckusick return value; 231698Smckusick } 24