![]() |
![]() |
![]() |
Get error message string associated with the error return status
#include <netdb.h> const char* hstrerror( int err );
libsocket
The hstrerror() function gets an error message string associated with the error return status from network host-related functions.
Network host-related functions such as the following can return the error status:
You can check the external integer h_errno to see whether this is a temporary failure or an invalid or unknown host.
A pointer to the message string affiliated with an error number. The array pointed to isn't to be modified by the program.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |