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.
ntoa is not thread safe
Share this highlighthttp://www.safaribooksonline.com/a/linux-socket-programming/37722/