inet_ntoa ¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/inet_ntoa.html
Gnulib module: —
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
<winsock2.h> instead of <arpa/inet.h>
on some platforms:
mingw, MSVC 14.
inet_ntop instead.
inet_ntoa function need not be reentrant, and consequently
is not required to be thread safe. Implementations of
inet_ntoa typically write the timestamp into static buffer.
If two threads call inet_ntoa at roughly the same time, you
might end up with the wrong date in one of the threads, or some
undefined string.
Note: inet_ntoa is specific for IPv4 addresses.
A protocol independent function is inet_ntop.