Frees system resources used by an address information structure. Format #include <netdb.h> void freeaddrinfo ( struct addrinfo *ai );
1 – Arguments
ai Points to an addrinfo structure to be freed. The NETDB.H header file defines the addrinfo structure.
2 – Description
This function frees an addrinfo structure and any dynamic storage pointed to by the structure. The process continues until the function encounters a NULL ai_next pointer.