Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
FREEPTYPE(3)		     MBK UTILITY FUNCTIONS		  FREEPTYPE(3)

NAME
       freeptype - 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

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).

ASIM/LIP6			October	1, 1997			  FREEPTYPE(3)

NAME | SYNOPSYS | PARAMETER | DESCRIPTION | EXAMPLE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=freeptype&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help