'\" t .\" Title: ieee1284_free_ports .\" Author: Tim Waugh .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 04/07/2024 .\" Manual: Functions .\" Source: [FIXME: source] .\" Language: English .\" .TH "IEEE1284_FREE_PORTS" "3" "04/07/2024" "[FIXME: source]" "Functions" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ieee1284_free_ports \- safely deallocate a port list .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'void\ ieee1284_free_ports('u .BI "void ieee1284_free_ports(struct\ parport_list\ *" "list" ");" .SH "DESCRIPTION" .PP When the port list will no longer be used, the program should call \fBieee1284_free_ports\fR giving it a pointer to the parport_list structure that holds the list of ports returned by \fBieee1284_find_ports\fR(3)\&. The ports are reference counted with the \fBieee1284_open\fR and \fBieee1284_close\fR functions, and so the port list may be freed even if it contains pointers to ports that are still open\&. .SH "AUTHOR" .PP \fBTim Waugh\fR <\&twaugh@redhat.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br Copyright \(co 2001-2003 Tim Waugh .br