Converts an Internet address into a text string representing the address in the standard Internet "." notation.
#include <in.h> #include <inet.h> char *inet_ntoa (struct in_addr in);
Because the string is returned in a static buffer that will be overwritten by successive calls to inet_ntoa, it is recommended to copy the string to a safe place.
x | A pointer to a string containing the Internet address in "." notation. |