4.2.17 inet_ntoa6

string inet_ntoa6(in6_addr_t *addr)

The inet_ntoa6 function takes a pointer addr to an IPv6 address and returns it as an RFC 1884 convention 2 string, with lowercase hexadecimal digits. 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_ntoa6 does not execute and an error is generated.