Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

lwres_gai_strerror(3) OSS Library Calls Reference Manual
EXAMPLE
The following programming example calls the lwres_gai_strerror( ) function to print error mes-
sages:
ret = lwres_getaddrinfo(hostname, servname, &hints, &result);
if(ret != 0) {
fprintf(stderr,"%s", lwres_gai_strerror(error));
return -1;
}
NOTES
Call this function to aid in printing human-readable error messages based on the EAI_ error
codes returned by the lwres_getaddrinfo( ) function.
RETURN VALUES
The lwres_gai_strerror( ) function call returns a pointer to a character string describing the error
code passed into it.
ERRORS
The message invalid error code is returned if ecode is out of range.
RELATED INFORMATION
Fuctions: lwres_getaddrinfo(3).
4154 Hewlett-Packard Company 527187-017