Open System Services Library Calls Reference Manual (G06.27+, H06.04+)
OSS Library Calls (i - m) lwres_gethostbyname(3)
EXAMPLE
char *name;
struct hostent *hp;
hp = lwres_gethostbyname(name);
The above example makes a call to lwres_gethostbyname()
by passing the Internet host name
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: gethostbyname(3), lwres_hstrerror(3).
527187-004 Hewlett-Packard Company 4−105