--- dietlibc/t.c 2001/03/01 17:58:21 1.28 +++ dietlibc/t.c 2001/03/01 18:42:57 1.29 @@ -42,11 +42,11 @@ extern double atof(const char *c); int main(int argc,char *argv[]) { struct in_addr bar; struct hostent *foo; - inet_aton("160.45.10.8",&bar); -/* struct hostent *foo=gethostbyname("zeit.fu-berlin.de"); */ - foo=gethostbyaddr(&bar,4,AF_INET); - if (foo) - printf("%s -> %s\n",foo->h_name,inet_ntoa(*(struct in_addr*)foo->h_addr)); +/* inet_aton("160.45.10.8",&bar); */ + foo=gethostbyname("zeit.fu-berlin.de"); +/* foo=gethostbyaddr(&bar,4,AF_INET); */ +/* if (foo) + printf("%s -> %s\n",foo->h_name,inet_ntoa(*(struct in_addr*)foo->h_addr)); */ /* printf("%g %g\n",1e-10,1e10); */ #if 0 double d=0.0;