4.2.18 inet_ntop

string inet_ntop(int af, void *addr)

The inet_ntop function takes a pointer addr to an IP address and returns a string version that depends on the provided address family. Supported address families are AF_INET and AF_INET6, both of which are defined for use in D programs. The returned string is allocated out of scratch memory and is therefore valid only for the duration of the clause. If insufficient scratch memory is available, inet_ntop does not execute and an error is generated.