logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ieee1284_free_ports - safely deallocate a port list

Author

TimWaugh <twaugh@redhat.com> Author.

Description

When the port list will no longer be used, the program should call ieee1284_free_ports giving it a pointer to the parport_list structure that holds the list of ports returned by ieee1284_find_ports(3). The ports are reference counted with the ieee1284_open and ieee1284_close functions, and so the port list may be freed even if it contains pointers to ports that are still open.

Name

ieee1284_free_ports - safely deallocate a port list

Synopsis

#include<ieee1284.h>voidieee1284_free_ports(structparport_list*list);

See Also