h_errno - error return value for network database operations
extern int h_errno;
Refer to endhostent().The <netdb.h> header provides a declaration of h_errno as a modifiable l-value of type int. The above synopsis is an example; other declarations as modifiable l-values of type int may be used in its place.