Insertion for arrays (
Pascal version
available)
void insert( key, r ) typekey key; dataarray r; { extern int n; if ( n>=m ) Error /*** Table is full ***/; else r[n++].k = key; }
C
source (311.ins.c)
Pascal
source (311.ins.p)
©
Addison-Wesley
Publishing Co. Inc.