Address Lookup (Continued) #include /* host to IP resolution */ . . . struct hostent* hen; /* host-to-IP data structure */ . . . /* Address resolution stage */ hen = gethostbyname("www.yahoo.com"); if (!hen) { perror("couldn't resolve host name"); exit(1); } /* yahoo's IP address(es) is (are) now in 'hen'. */