Compartilhar via


freeaddrinfo

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function frees address information that the getaddrinfo function dynamically allocates in its addrinfo structures.

Syntax

void freeaddrinfo(
  struct addrinfo FAR* ai
);

Parameters

  • ai
    [in] Pointer to the addrinfo structure or linked list of addrinfo structures to be freed. All dynamic storage pointed to within the addrinfo structures is also freed.

Remarks

This function frees the initial addrinfo structure pointed to in its ai parameter, including any buffers to which its members point, then continues freeing any addrinfo structures linked by its ai_next member. The freeaddrinfo function continues freeing linked structures until a NULL ai_next member is encountered.

Requirements

Header ws2tcpip.h
Library Ws2.lib
Windows Embedded CE Windows CE .NET 4.1 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

getaddrinfo
addrinfo