gai_strerror
—
get error message string from EAI_xxx error
code
#include
<sys/types.h>
#include
<sys/socket.h>
#include
<netdb.h>
const char *
gai_strerror
(
int
ecode);
The
gai_strerror
() function returns an error
message string corresponding to the error code returned by
getaddrinfo(3)
or
getnameinfo(3).
The following error codes and their meaning are defined in
<netdb.h>
:
The
gai_strerror
() function returns a pointer
to the error message string corresponding to
ecode. If
ecode is out of range, an
implementation-specific error message string is returned.
getaddrinfo(3),
getnameinfo(3)