This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/15829] fgetc(stdin) does not return EOF on arm


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]