freeaddrinfo(3)freeaddrinfo(3)NAMEfreeaddrinfo - Free system resources used by an address information
structure
SYNOPSIS
#include <netdb.h>
void freeaddrinfo(
struct addrinfo *ai );
LIBRARY
Standard C Library (libc)
STANDARDS
The freeaddrinfo function supports POSIX.1g Draft 6.6.
Refer to the standards(5) reference page for more information about
industry standards and associated tags.
PARAMETERS
Points to a addrinfo structure to be freed. The netdb.h header file
defines the addrinfo structure.
DESCRIPTION
The freeaddrinfo() routine frees one or more addrinfo structures and
any dynamic storage associated with the structures. The process con‐
tinues until the routine encounters a NULL ai_next pointer.
SEE ALSO
Functions: connect(2), getaddrinfo(3), gai_strerror(3), gethostby‐
name(3), getservbyname(3), socket(2).
Files: hostname(5), resolv.conf(4), svc.conf(4).
Networks: bind_intro(7), nis_intro(7).
Standards: standards(5).
Network Programmer's Guide
freeaddrinfo(3)