summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c177592)
+ if ( ! feof( stream ) ) /* TODO: Check EOF status directly */
else
{
/* Non-whitespace char in format string: Match verbatim */
else
{
/* Non-whitespace char in format string: Match verbatim */
- if ( ( c = getc( stream ) ) != *format )
+ if ( ( ( c = getc( stream ) ) != *format ) || feof( stream ) ) /* TODO: Check EOF status directly */
+ if ( ! feof( stream ) ) /* TODO: Check EOF status directly */
+ {
+ ungetc( c, stream );
+ }