The endhostent() call closes the ETC\HOSTS file, which contains information about known hosts.
Syntax
#include <netdb.h> void endhostent()
Description
The endhostent() call closes the ETC\HOSTS file.
When using the endhostent() call in DNS/BIND name service resolution, endhostent() closes the TCP connection which the sethostent() call set up.
Related Calls