4.2.16 inet_ntoa

string inet_ntoa(ipaddr_t *addr)

The inet_ntoa function takes a pointer addr to an IPv4 address and returns it as a dotted, quad decimal string. 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_ntoa does not execute and an error is generated.