11.4 gethostbyaddr Function
The function gethostbyaddr takes a binary IPv4 address and tries to find the hostname corresponding to that address. This is the reverse of gethostbyname.
#include <netdb.h> |
struct hostent *gethostbyaddr (const char *addr , socklen_t len , int family ); |
Returns: non-null pointer if OK, NULL on error with h_errno set |