O'Reilly logo
  • Mickey Malone thinks this is interesting:


The results returned from inet_ntoa(3) are valid only until the next call to this function.


Due to the limitation given in the previous note, if you use this function in threaded code, you must make certain that only one thread at a time calls this function. Failure to heed this advice will result in returned results being overwritten by other threads.


Cover of Linux Socket Programming by Example


ntoa is not thread safe