[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Communications, Volume 2

freeaddrinfo Subroutine

Purpose

Frees memory allocated by the getaddrinfo Subroutine.

Library

The Standard C Library (<libc.a>)

Syntax

#include <sys/socket.h>
#include <netdb.h>
void freeaddrinfo (struct addrinfo *ai)
 

Description

The freeaddrinfo subroutine frees one or more addrinfo structures returned by the getaddrinfo subroutine, along with any additional storage associated with those structures. If the ai_next field of the structure is not NULL, the entire list of structures is freed.

Parameters

ai Points to dynamic storage allocated by the getaddrinfo subroutine

Related Information

getaddrinfo Subroutine, and getnameinfo Subroutine.

The gai_strerror Subroutine in AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]