[Previous] [Contents] [Index] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

freeifaddrs()

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

See also:

getifaddrs(), ifaddrs, ioctl(), malloc(), socket(), sysctl()


[Previous] [Contents] [Index] [Next]