freechain.3alc - Man Page
free a chain_list
Synopsis
#include "mut.h" void freechain(pt) chain_list ∗pt;
Parameter
- pt
Pointer to the chain list to be freed
Description
freechain frees the chain_list pointed to by pt. All the elements of the list are put back in the list of free blocks.
Example
#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);
}See Also
mbk(1), chain(3), addchain(3), delchain(3).
Referenced By
addchain.3alc(3), chain.3alc(3), delchain.3alc(3), unflattenlofig.3alc(3).
October 1, 1997 ASIM/LIP6 MBK UTILITY FUNCTIONS