On Sun, Apr 11, 2010 at 09:40:45PM +0200, Toni Mueller wrote: > Hi Patrick, > > On Sun, 11.04.2010 at 11:58:54 -0700, patrick keshishian > <sids...@boxsoft.com> wrote: > > inet_ntoa will return pointer to a static buffer. Each call > > TO IT Will override thsi buffer with the new IP info. > > I already suspected something like this, but this behaviour is not > documented in the man page.
Look at the very bottom of the man page: The string returned by inet_ntoa() resides in a static memory area --patrick