I think it might be Windows. fseek() returns 0 in Windows for me, but in Linux:
Code:
<file list>

EOF?: 1
fseek succeed?: -1
Position?: -1
Error?: 0
EOF?: 1
STILL @ EOFitsme@itsme:~/C$
Windows sucks