Previous section.

Technical Standard: Networking Services (XNS), Issue 5.2 Draft 2.0
Copyright © 1999 The Open Group

NAME

gai_strerror - address and name information error description

SYNOPSIS


#include <netdb.h>

char *gai_strerror(int ecode);

DESCRIPTION

Function gai_strerror() returns a text string describing an error that is listed in Address Information Structure.

When argument ecode is one of the values listed in Address Information Structure, the function return value points to a string describing the error. If the argument is not one of those values, the function returns a pointer to a string whose contents indicate an unknown error.

SEE ALSO

getaddrinfo(), <netdb.h>.

CHANGE HISTORY

First released in Issue 5.2.

Contents Next section Index