freeifaddrs()

Updated: April 19, 2023

Free a network interface address

Synopsis:

#include <sys/types.h>
#include <sys/socket.h>
#include <ifaddrs.h>

void freeifaddrs( struct ifaddrs * ifap );

Arguments:

ifap
A pointer to the linked list of ifaddrs structures to be freed.

Library:

libsocket

Use the -l socket option to qcc to link against this library.

Description:

The freeifaddrs() function frees the dynamically allocated data returned by getifaddrs().

Classification:

Unix

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes