This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38876] cannot reuse input stream 1022 times on same file
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2009 18:05:44 -0000
- Subject: [Bug c/38876] cannot reuse input stream 1022 times on same file
- References: <bug-38876-17197@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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
type 'struct FILE *'
t.c:14: warning: 'return' with no value, in function returning non-void
t.c:16: warning: implicit declaration of function 'close'
t.c:4: warning: unused parameter 'argc'
t.c:5: warning: unused parameter 'argv'
Note implicit declaration warning :).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38876