1DELHT(3)              MBK HASH TABLE MANAGEMENT FUNCTIONS             DELHT(3)
2
3
4

NAME

6       delht - removes an hash table
7

SYNOPSIS

9       #include "mut.h"
10       void delht(table)
11       ht ∗table;
12

PARAMETER

14       table               Hash table pointer
15

DESCRIPTION

17       delht() removes the hash table pointed to by table from memory.
18

EXAMPLE

20       #include "mut.h"
21       checksigname(p)
22       lofig_list ∗p;
23       {
24       ht ∗h;
25       int i;
26       char ∗amatla;
27          for (i = 0, ptsig = p->LOSIG; ptsig; i++, ptsig = ptsig->NEXT);
28          h = addht(i);
29          for (ptcon = p->LOCON; ptcon; ptcon = ptcon->NEXT)
30             addhtitem(h, ptcon->NAME, 0);
31          for (ptsig = p->LOSIG; ptsig; ptsig = ptsig->NEXT) {
32             if (ptsig->TYPE == INTERNAL) {
33                amatla = getsigname(ptsig);
34                if (!sethtitem(h, amatla, 0)) {
35                   printf("N %s;\n", amatla);
36                }
37             }
38          }
39          delht(h);
40       }
41

SEE ALSO

43       mbk(1), addht(3), addhtitem(3), gethtitem(3), delhtitem(3), viewht(3).
44
45
46
47
48
49
50ASIM/LIP6                       October 1, 1997                       DELHT(3)
Impressum