in reply to Re^2: getc skips ahead
in thread getc skips ahead
Note that the piece of information that gives it away is this: "in the problem file, [getc] returns 270, 782, 4367, 4368". You'd normally expect getc() to be reading one byte at a time, and therefore always returning numbers in the range 0..255; only if the file is being read in a different mode can larger integers be returned.
Update: misread the details.
Hugo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: getc skips ahead
by ysth (Canon) on Aug 15, 2004 at 19:57 UTC | |
by hv (Prior) on Aug 16, 2004 at 01:19 UTC |