freeptype - free a ptype_list
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Université Pierre et Marie CURIE, in Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users AT asim DOT lip6 DOT fr
#include "mut.h"
ptype_list ∗freeptype(pt)
ptype_list ∗pt;
pt |
Pointer to the ptype list to be freed |
freeptype frees the ptype_list pointed to by pt. All the elements of the list are put back in the list of free blocks.
#include "mut.h"
void free_from(c, i) /∗ erase list from ith element ∗/
ptype_list ∗c;
int i;
{
ptype_list ∗t;
while (i--) |
|||
c = c->NEXT; |
|||
t = c->NEXT, c->NEXT = NULL; |
|||
freeptype(t); |
}
mbk(1), ptype(3), addptype(3), getptype(3), delptype(3).
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.