.\" $Id: freenum.3,v 1.1 2002/03/08 13:51:02 fred Exp $ .\" @(#)freenum.2 2.11 91/08/22 ; Labo masi cao-vlsi; Author : Frederic Petrot .if t \{\ .XS \n% .ti 0.2i freenum .XE .XS4 \n% .ti 0.2i freenum .XE4 \} .TH FREENUM 3 "October 1, 1997" "ASIM/LIP6" "MBK UTILITY FUNCTIONS" .SH NAME freenum \- free a \fBnum_list\fP .so jessie/alliance/alc_origin.1.en.gz .SH SYNOPSYS .nf .if n \{\ .ft B \} .if t \{\ .ft CR \} #include "mut.h" void freenum(pt) num_list \(**pt; .ft R .fi .SH PARAMETER .TP 20 \fIpt\fP Pointer to the \fBnum\fP list to be freed .SH DESCRIPTION \fBfreenum\fP frees the \fBnum_list\fP pointed to by \fIpt\fP. All the elements of the list are put back in the list of free blocks. .SH EXAMPLE .ta 3n 6n 9n 12n 15n 18n 21n .nf .if n \{\ .ft B \} .if t \{\ .ft CR \} #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); } .ft R .fi .SH SEE ALSO .BR mbk (1), .BR num (3), .BR addnum (3). .so jessie/alliance/alc_bug_report.1.en.gz