| GAI_STRERROR(3) | Library Functions Manual | GAI_STRERROR(3) | 
gai_strerror —
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
const char *
  
  gai_strerror(int
    ecode);
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>:
EAI_ADDRFAMILYEAI_AGAINEAI_BADFLAGSEAI_BADHINTSEAI_FAILEAI_FAMILYEAI_MEMORYEAI_NODATAEAI_NONAMEEAI_OVERFLOWEAI_PROTOCOLEAI_SERVICEEAI_SOCKTYPEEAI_SYSTEMgai_strerror() 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.
| February 22, 2006 | NetBSD 9.3 |