1FREENUM(3) MBK UTILITY FUNCTIONS FREENUM(3)
2
3
4
6 freenum - free a num_list
7
9 #include "mut.h"
10 void freenum(pt)
11 num_list ∗pt;
12
14 pt Pointer to the num list to be freed
15
17 freenum frees the num_list pointed to by pt. All the elements of the
18 list are put back in the list of free blocks.
19
21 #include "mut.h"
22 void free_from(c, i) /∗ erase list from ith element ∗/
23 num_list ∗c;
24 int i;
25 {
26 num_list ∗t;
27 while (i--)
28 c = c->NEXT;
29 t = c->NEXT, c->NEXT = NULL;
30 freenum(t);
31 }
32
34 mbk(1), num(3), addnum(3).
35
36
37
38
39
40
41ASIM/LIP6 October 1, 1997 FREENUM(3)