sethostent - network host database function
#include <netdb.h> void sethostent(int stayopen);
Refer to endhostent().