freeaddrinfo() — Free addrinfo storage
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
RFC2553 |
both | z/OS V1R4 |
Format
#define _OPEN_SYS_SOCK_IPV6
#include <sys/socket.h>
#include <netdb.h>
void *freeaddrinfo(struct addrinfo *ai);
SUSV3
#define _POSIX_C_SOURCE 200112L
#include <sys/socket.h>
#include <netdb.h>
void *freeaddrinfo(struct addrinfo *ai);
General description
The freeaddrinfo() function frees one or more addrinfo structures returned by getaddrinfo(), along with any additional storage associated with those structures. If the ai_next field of the structure is not null, the entire list of structures is freed.
Returned value
No return value is defined.