On Sun, 9 Aug 1998, Torbjørn S. Kristoffersen wrote:

>       strcpy(ipAddress,inet_ntoa(*((struct in_addr *)h->h_addr)));
>       /* ^ this line also makes an error message:
>            warning: passing arg 2 of `strcpy' makes pointer from integer
>            without a cast
>       */

And infact it' s wrong. inet_ntoa() return the int 32bit IP address, not
the poiner to the string of that address.

I suggest you to take a look to the `host` command source code.

andrea@dragon:~$ dpkg -S /usr/bin/host
dnsutils: /usr/bin/host

so go to:

ftp://ftp.debian.org/debian/dists/slink/main/source/net/dnsutilsxxx.tar.gz

(should be there)...

Andrea[s] Arcangeli

Reply via email to