Searched refs:hptr1 (Results 1 – 1 of 1) sorted by relevance
139 struct hostent *hptr1, *hptr2; in test_hosts() local144 hptr1 = gethostbyname ("localhost"); in test_hosts()146 if (hptr1 != NULL || hptr2 != NULL) in test_hosts()148 if (hptr1 == NULL) in test_hosts()158 else if (strcmp (hptr1->h_name, hptr2->h_name) != 0) in test_hosts()161 printf ("gethostbyname (\"localhost\")->%s\n", hptr1->h_name); in test_hosts()166 output_hostent ("gethostbyname(\"localhost\")", hptr1); in test_hosts()169 hptr1 = gethostbyname ("127.0.0.1"); in test_hosts()170 output_hostent ("gethostbyname (\"127.0.0.1\")", hptr1); in test_hosts()172 hptr1 = gethostbyname ("10.1234"); in test_hosts()[all …]