Bug#2387: gethostbyaddr(3) ill documented
Package: libc5-dev
Version: 5.2.18-1
I had difficulty figuring out the format of the first argument to
gethostbyaddr. I looked at the man page, the info for libc, and
/usr/include/netdb.h.
I tried test programs with the address represented using struct
sockaddr_in (from gethostbyname), using standard dots and digits, and
of course using the struct in_addr (int) format [this turns out to be
the correct format -- though I didn't notice this at first because of
a bug in my test program].
I think this should more clearly documented.
--
Raul
Reply to: