Open System Services Library Calls Reference Manual (G06.28+, H06.05+)
OSS Library Calls (i - m) lwres_gethostbyaddr(3)
NO_RECOVERY
A nonrecoverable error occurred.
NO_DATA The name exists, but has no address information associated with it (or vice versa
in the case of a reverse lookup). The value NO_ADDRESS is accepted as a
synonym for NO_DATA for backwards compatibility.
EXAMPLE
char *addr;
int len, type;
struct hostent *hp;
hp = lwres_gethostbyaddr(addr, len, type);
The above example makes a call to lwres_gethostbyaddr()
by passing the Internet address as an
argument. If an answer is found, a pointer to the hostent structure is returned and stored in hp.
NULL is returned if no answer is found.
RELATED INFORMATION
Functions: inet_addr(3), lwres_hstrerror(3).
527187-007 Hewlett-Packard Company 4−101