SIMPLE SOLUTIONS

FREECHAIN(3) - Linux man page online | Library functions

Free a chain_list.

Chapter
October 1, 1997
FREECHAIN(3) MBK UTILITY FUNCTIONS FREECHAIN(3)

NAME

freechain - free a chain_list

SYNOPSYS

#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).
ASIM/LIP6 October 1, 1997 FREECHAIN(3)
This manual Reference Other manuals
freechain(3) referred by addchain(3) | chain(3) | delchain(3) | unflattenlofig(3)
refer to addchain(3) | chain(3) | delchain(3)
Download raw manual
Main page MBK UTILITY FUNCTIONS (+39) ASIM/LIP6 (+480) № 3 (+68044)
Go top