Index Index for
Section 3
Index Alphabetical
listing for G
Index Bottom of
page

gai_strerror(3)

NAME

gai_strerror - Prints an error message string based on a return code from the getaddrinfo routine

LIBRARY

Standard C Library (libc.so, libc.a)

SYNOPSIS

#include <netdb.h> char *gai_strerror( int *ecode);

PARAMETERS

ecode Points to a network host name or alias.

DESCRIPTION

The gai_strerror() routine returns a pointer to a string that describes the error based on an EAI_xxx value returned by the getaddrinfo routine.

RETURN VALUES

Upon successful completion, the getaddrinfo() routine returns a pointer to a string describing the error. If the ecode parameter is not a valid EAI_xxx value, the routine returns a pointer to a string that indicates an unknown error.

RELATED INFORMATION

Functions: endhostent(3), freeaddrinfo(3), getaddrinfo(3), getipnodebyaddr(3), sethostent(3).

Index Index for
Section 3
Index Alphabetical
listing for G
Index Top of
page