Open System Services Library Calls Reference Manual (G06.28+, H06.05+)
lwres_gai_strerror(3) OSS Library Calls Reference Manual
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.
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;
}
RELATED INFORMATION
Fuctions: lwres_getaddrinfo(3)
.
4−96 Hewlett-Packard Company 527187-007