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

Technical Reference: Base Operating System and Extensions, Volume 1


freehostent Subroutine

Purpose

To free memory allocated by getipnodebyname and getipnodebyaddr.

Library

Standard C Library (libc.a)

Syntax

#include <netdb.h>
void freehostent (ptr)
struct hostent * ptr;

Description

The freehostent subroutine frees any dynamic storage pointed to by elements of ptr. This includes the hostent structure and the data areas pointed to by the h_name, h_addr_list, and h_aliases members of the hostent structure.

Related Information

The getipnodebyaddr subroutine and getipnodebyname subroutine.


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