Updated: April 19, 2023 |
Free a list of address information structures
#include <sys/types.h> #include <sys/socket.h> #include <netdb.h> void freeaddrinfo( struct addrinfo * ai );
The freeaddrinfo() function frees the given list of addrinfo structures and the dynamic storage associated with each item in the list.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |