Commit | Line | Data |
---|---|---|
5546ab1f KM |
1 | /* Copyright (c) 1979 Regents of the University of California */ |
2 | ||
4b9ccde7 | 3 | static char sccsid[] = "@(#)RSNG4.c 1.3 6/10/81"; |
5546ab1f | 4 | |
5546ab1f | 5 | |
492cc5d3 | 6 | long |
5546ab1f KM |
7 | RSNG4(value, upper) |
8 | ||
492cc5d3 KM |
9 | long value; |
10 | long upper; | |
5546ab1f KM |
11 | { |
12 | if (value < 0 || value > upper) { | |
86997b19 | 13 | ERROR("Value of %D is out of range\n", value); |
5546ab1f KM |
14 | return; |
15 | } | |
16 | return value; | |
17 | } |