The function takes a hostname and returns a pointer to a statically allocated hostent struct. Since each call to gethostbyname () will overwrite it, you should copy the returned struct to a private ...