--- 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
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-01-16 18:05 ---
close is not fclose. close works on file numbers and not FILE*.
t.c:4: warning: return type defaults to 'int'
t.c: In function 'main':
t.c:13: warning: format '%0x' expects type 'unsigned int', but argument 3 has
t