Next: Out of memory handling, Previous: ctime, Up: Gnulib
The inet_ntoa function need not be reentrant, and consequently
is not required to be thread safe. Implementations of
inet_ntoa typically write the time stamp 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. Further, inet_ntoa is specific for
IPv4 addresses.
A protocol independent function is inet_ntop.