#include <ifaddrs.h> void freeifaddrs(struct ifaddrs *ifap)
The freeifaddrs() function frees the dynamic memory that was allocated by the getifaddrs() function. After freeifaddrs() has been called, the application should not use the array of which ifap is the address.
The ifaddrs structure is defined in <ifaddrs.h>.
struct ifaddrs { struct ifaddrs *ifa_next; char *ifa_name; u_int ifa_flags; struct sockaddr *ifa_addr; struct sockaddr *ifa_netmask; union { struct sockaddr *ifu_broadaddr; struct sockaddr *ifu_dstaddr; } ifa_ifu; void *ifa_data; };
No authorization is required.
None.
errno can be set to:
[EFAULT] | The address used for an argument was not correct. |