ack/lang/pc/libpc/rcka.c

26 lines
515 B
C
Raw Normal View History

1994-06-24 14:02:31 +00:00
/* $Id$ */
1990-11-06 13:16:57 +00:00
/*
* (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
1989-05-03 09:53:25 +00:00
/* Author: Hans van Eck */
#include <em_abs.h>
1991-02-22 16:57:42 +00:00
extern _trp();
1989-05-03 09:53:25 +00:00
struct array_descr {
int lbound;
unsigned n_elts_min_one;
unsigned size; /* doesn't really matter */
};
_rcka(descr, index)
struct array_descr *descr;
{
if( index < descr->lbound ||
index > (int) descr->n_elts_min_one + descr->lbound )
1991-02-22 16:57:42 +00:00
_trp(EARRAY);
1989-05-03 09:53:25 +00:00
}