This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Print the message associated with the value of h_errno to standard error
#include <netdb.h> void herror( const char* prefix );
libsocket
Use the -l socket option to qcc to link against this library.
The herror() function prints the message corresponding to the error number contained in h_errno to stderr. The following functions can set h_errno:
If the prefix string is non-NULL, it's printed, followed by a colon and a space. The error message is printed with a trailing newline. One of the following messages could be printed:
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | No |
gethostbyaddr(), gethostbyaddr_r(), gethostbyname(), gethostbyname_r(), h_errno, res_query(), res_search(), stderr