Mail Archives: djgpp-workers/1996/03/23/04:48:08
> > I'm going soon to add to stdio a flag indicating that ungetc was called for
> > current buffer, that will allow lseeking in buffered data without
> > dos calling. Maybe I'll test the new version with ld and report the
> > results. I just need to download ld sources.
>
> The buffering was taken out to deal with a text-file-mode problem.
> ungetc always just wrote back to the existing buffer and has never
> needed a flag.
Ungetc can be used to place any data back to buffer, not necessaryly
the same as was read, so the buffer may not correspond to file contents
after an ungetc, and fseek should undo any effects of ungetc() on stream.
- Raw text -