Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

connect(2)

getaddrinfo(3)

gai_strerror(3)

gethostbyname(3)

getservbyname(3)

socket(2)

hostname(5)

resolv.conf(4)

svc.conf(4)

bind_intro(7)

nis_intro(7)

standards(5)

freeaddrinfo(3)  —  Subroutines

NAME

freeaddrinfo − Free system resources used by an address information structure

SYNOPSIS

#include <netdb.h>
void freeaddrinfo(
        struct addrinfo ∗ai );

LIBRARY

Standard C Library (libc)

STANDARDS

The freeaddrinfo function supports POSIX.1g Draft 6.6. 

Refer to the standards(5) reference page for more information about industry standards and associated tags. 

PARAMETERS

aiPoints to a addrinfo structure to be freed.  The netdb.h header file defines the addrinfo structure. 

DESCRIPTION

The freeaddrinfo() routine frees one or more addrinfo structures and any dynamic storage associated with the structures.  The process continues until the routine encounters a NULL ai_next pointer. 

SEE ALSO

Functions: connect(2), getaddrinfo(3), gai_strerror(3), gethostbyname(3), getservbyname(3), socket(2). 

Files: hostname(5), resolv.conf(4), svc.conf(4). 

Networks: bind_intro(7), nis_intro(7). 

Standards: standards(5). 

Network Programmer’s Guide

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026