Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

freehostent() - release memory for hostent structure

&pagelevel(4)&pagelevel

#include <netdb.h>

void freehostent(struct hostent *ptr);

Description

The freehostent() function releases memory of an object of the type struct hostent which was requested beforehand with the getipnodebyname() or getipnodebyaddr() function.

The ptr parameter points to an object of the type struct hostent.

The declaration of the hostent structure can be found in section "Converting host names into network addresses and vice versa".