FREECHAIN(3) | MBK UTILITY FUNCTIONS | FREECHAIN(3) |
freechain - free a chain_list
See the file buster/alliance/alc_origin.1.en.gz.
#include "mut.h" void freechain(pt) chain_list ∗pt;
freechain frees the chain_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 ∗/ chain_list ∗c; int i; { chain_list ∗t; while (i--) c = c->NEXT; t = c->NEXT, c->NEXT = NULL; freechain(t); }
mbk(1), chain(3), addchain(3), delchain(3).
See the file buster/alliance/alc_bug_report.1.en.gz.
October 1, 1997 | ASIM/LIP6 |