I am unfamiliar with the function itself but here is what the manual page on my computer said it did.
The inet_ntoa() function converts the Internet host address in, given in network byte order, to a string in IPv4 dotted-decimal notation. The string is returned in a statically allocated buffer, which subsequent calls will over‐write.