1FREEPTYPE(3) MBK UTILITY FUNCTIONS FREEPTYPE(3)
2
3
4
6 freeptype - free a ptype_list
7
9 #include "mut.h"
10 ptype_list ∗freeptype(pt)
11 ptype_list ∗pt;
12
14 pt Pointer to the ptype list to be freed
15
17 freeptype frees the ptype_list pointed to by pt. All the elements of
18 the 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 ptype_list ∗c;
24 int i;
25 {
26 ptype_list ∗t;
27 while (i--)
28 c = c->NEXT;
29 t = c->NEXT, c->NEXT = NULL;
30 freeptype(t);
31 }
32
34 mbk(1), ptype(3), addptype(3), getptype(3), delptype(3).
35
36
37
38
39
40
41ASIM/LIP6 October 1, 1997 FREEPTYPE(3)