------- Comment #2 from william dot langdon at kcl dot ac dot uk 2009-01-16 18:45 ------- (In reply to comment #1)
Yip, fclose fixes it! Many thanks! Bill Ps: gcc did not give any warnings here, unless I add -Wall -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38876