freeaddrinfo

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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


void freeaddrinfo(
  struct addrinfo FAR* ai
);

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.

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.

Headerws2tcpip.h
LibraryWs2.lib
Windows Embedded CEWindows CE .NET 4.1 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: