freeptype.3alc - Man Page

free a ptype_list

Synopsis

#include "mut.h"
ptype_list ∗freeptype(pt)
ptype_list ∗pt;

Parameter

pt

Pointer to the ptype list to be freed

Description

freeptype frees the ptype_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 ∗/
ptype_list ∗c;
int i;
{
ptype_list ∗t;
	while (i--)
		c = c->NEXT;
	t = c->NEXT, c->NEXT = NULL;
	freeptype(t);
}

See Also

mbk(1), ptype(3), addptype(3), getptype(3), delptype(3).

Referenced By

addptype.3alc(3), delptype.3alc(3), getptype.3alc(3), ptype.3alc(3).

October 1, 1997 ASIM/LIP6 MBK UTILITY FUNCTIONS