You did thanks.. I flushed the stdout and the result was the same, so, IMHO it isn't a buffering problem. The command "ifconfig -a" sould show all the interfaces installed on my machine. It shows only the loopback (lo) interface instead. The program parses the full content of /proc/net/dev but it shows only the first interface it finds, i.e. "lo". I tried also by changing the backend (system/linux.* -> system/generic.*) without success. My machine is a Linux x86_64 2.6.34.1 with glibc 2.11.2. If you want more information please ask and I will be happy to answer.
Regards Giampaolo On Sunday 25 July 2010 13:58:00 Alfred M. Szmidt wrote: > I'm not sure if I answered this or not, the output is not strange. > printf can flush it buffer when it wants, so output is not guaranteed > to be as you write the calls. If you want to flush it, you have to do > so explicitly.