This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/15829] fgetc(stdin) does not return EOF on arm
- From: "aj at suse dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 12 Aug 2013 10:34:11 +0000
- Subject: [Bug stdio/15829] fgetc(stdin) does not return EOF on arm
- Auto-submitted: auto-generated
- References: <bug-15829-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15829
Andreas Jaeger <aj at suse dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aj at suse dot de
--- Comment #5 from Andreas Jaeger <aj at suse dot de> ---
The code uses:
char c = '_';
...
c=fgetc(stdin);
While the prototype is:
int fgetc(FILE *stream);
The man page is correct - as is Andreas Schwab - and the example code is
broken. Changing the code to use "int c..." should fix it.
--
You are receiving this mail because:
You are on the CC list for the bug.