freenum(3) - Linux man page
Name
freenum - free a num_list
Synopsys
#include "mut.h" void freenum(pt) num_list ∗pt;
Parameter
- pt
Pointer to the num list to be freed
Description
freenum frees the num_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 ∗/
num_list ∗c;
int i;
{
num_list ∗t;
while (i--)
c = c->NEXT;
t = c->NEXT, c->NEXT = NULL;
freenum(t);
- }