/[avr-libc]/avr-libc/libc/stdio/fgetc.c
ViewVC logotype

Diff of /avr-libc/libc/stdio/fgetc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by aesok, Fri Aug 5 14:31:49 2005 UTC revision 1.5 by joerg_wunsch, Tue Sep 6 18:49:15 2005 UTC
# Line 56  fgetc(FILE *stream) Line 56  fgetc(FILE *stream)
56                          stream->buf++;                          stream->buf++;
57                  }                  }
58          } else {          } else {
59                  rv = stream->get();                  rv = stream->get(stream);
60                  if (rv == -1) {                  if (rv < 0) {
61                          stream->flags |= __SERR;                          /* if != _FDEV_ERR, assume it's _FDEV_EOF */
62                            stream->flags |= (rv == _FDEV_ERR)? __SERR: __SEOF;
63                          return EOF;                          return EOF;
64                  }                  }
65          }          }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26