| Line |   | 
|---|
| 1 | /*
 | 
|---|
| 2 |  * (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
 | 
|---|
| 3 |  * See the copyright notice in the ACK home directory, in the file "Copyright".
 | 
|---|
| 4 |  *
 | 
|---|
| 5 |  *
 | 
|---|
| 6 |  * Module:      range checks for CARDINAL
 | 
|---|
| 7 |  * Author:      Ceriel J.H. Jacobs
 | 
|---|
| 8 |  * Version:     $Header: /cvsup/minix/src/lib/ack/libm2/rcku.c,v 1.1 2005/10/10 15:27:46 beng Exp $
 | 
|---|
| 9 | */
 | 
|---|
| 10 | 
 | 
|---|
| 11 | #include <em_abs.h>
 | 
|---|
| 12 | 
 | 
|---|
| 13 | extern TRP();
 | 
|---|
| 14 | 
 | 
|---|
| 15 | struct range_descr {
 | 
|---|
| 16 |   unsigned      low, high;
 | 
|---|
| 17 | };
 | 
|---|
| 18 | 
 | 
|---|
| 19 | rcku(descr, val)
 | 
|---|
| 20 |   struct range_descr *descr;
 | 
|---|
| 21 |   unsigned val;
 | 
|---|
| 22 | {
 | 
|---|
| 23 |   if (val < descr->low || val > descr->high) TRP(ERANGE);
 | 
|---|
| 24 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.