[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.

freeaddrinfo()

Free a list of address information structures

Synopsis:

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

void freeaddrinfo( struct addrinfo * ai );

Arguments:

ai
A pointer to the addrinfo structure that's at the beginning of the list to be freed.

Library:

libsocket

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

Description:

The freeaddrinfo() function frees the given list of addrinfo structures and the dynamic storage associated with each item in the list.

Classification:

POSIX 1003.1

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

See also:

addrinfo, gai_strerror(), getaddrinfo()


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