Converts a character string to a network address.
#include <prnetdb.h> PRStatus PR_NetAddrToString( const PRNetAddr *addr, char *string, PRUint32 size);
The function has the following parameters:
addr
string
size
The function returns one of the following values:
PR_SUCCESS
PR_FAILURE
PR_GetError
The network address to be converted (addr) may be either an IPv4 or IPv6 address structure, assuming that the NSPR library and the host system are both configured to utilize IPv6 addressing. If addr is an IPv4 address, size needs to be at least 16. If addr is an IPv6 address, size needs to be at least 46.