Next: inet_ntop
, Previous: inet_addr
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
inet_ntoa
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/inet_ntoa.html
Gnulib module: —
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
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
.