inet_ntoa( )
NAME
inet_ntoa( ) - convert a network address to dotted decimal notation
SYNOPSIS
char *inet_ntoa ( struct in_addr inetAddress /* inet address */ )
DESCRIPTION
This routine converts an Internet address in network format to dotted decimal notation.
WARNING
This routine is supplied for UNIX compatibility only. Each time this routine is called, 18 bytes are allocated from memory. Use inet_ntoa_b( ) instead.
EXAMPLE
The following example returns a pointer to the string "90.0.0.2":
struct in_addr iaddr; ... iaddr.s_addr = 0x5a000002; ... inet_ntoa (iaddr);
RETURNS
A pointer to the string version of an Internet address.