HP-UX IPv6 Porting Guide (February 2007)
Freeing Memory
Freeing Memory from getaddrinfo() and getnameinfo() Function Calls
Chapter 942
Freeing Memory from getaddrinfo() and getnameinfo()
Function Calls
The function call freeaddrinfo() frees the memory of one or more addrinfo() structures
returned by the getaddrinfo() or getnameinfo() functions.
Header Files
#include <netdb.h>
Syntax
void freeaddrinfo(struct addrinfo *ai);
Parameters
*ai: pointer to the structure addrinfo.
Freeing Memory from getipnodebyaddr() and
getipnodebyname() Function Calls
The function call freehostent() frees the memory of one or more hostent() structures
returned by the getipnodebyaddr() or getipnodebynameinfo() functions.
Syntax
void freehostent(struct hostent *ptr);
Parameters
*ptr: A pointer to the structure hostent.