freeptype(3)

freeptype3

Free a ptype_list

Synopsys

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

Parameter

pt

Pointer to the ptype list to be freed

Overview

freeptype frees the ptype_list pointed to by pt. All the elements of the list are put back in the list of free blocks.

Examples

#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);
}

Releases

4 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–8
  2. 9–10

From alliance 5.1.1-3 in Debian 10 (Buster). Parsed by carta from the page's man source.