Commit | Line | Data |
---|---|---|
5546ab1f KM |
1 | /* Copyright (c) 1979 Regents of the University of California */ |
2 | ||
492cc5d3 | 3 | static char sccsid[] = "@(#)RSNG4.c 1.2 %G%"; |
5546ab1f KM |
4 | |
5 | #include "h01errs.h" | |
6 | ||
492cc5d3 | 7 | long |
5546ab1f KM |
8 | RSNG4(value, upper) |
9 | ||
492cc5d3 KM |
10 | long value; |
11 | long upper; | |
5546ab1f KM |
12 | { |
13 | if (value < 0 || value > upper) { | |
14 | ERROR(ERANGE, value); | |
15 | return; | |
16 | } | |
17 | return value; | |
18 | } |