Ends retrieval of network host entries and closes the network host file. Syntax: #include <netdb.h> void endhostent (void);