1FREEPTYPE(3)                 MBK UTILITY FUNCTIONS                FREEPTYPE(3)
2
3
4

NAME

6       freeptype - free a ptype_list
7

SYNOPSIS

9       #include "mut.h"
10       ptype_list ∗freeptype(pt)
11       ptype_list ∗pt;
12

PARAMETER

14       pt                  Pointer to the ptype list to be freed
15

DESCRIPTION

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

EXAMPLE

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

SEE ALSO

34       mbk(1), ptype(3), addptype(3), getptype(3), delptype(3).
35
36
37
38
39
40
41ASIM/LIP6                       October 1, 1997                   FREEPTYPE(3)
Impressum