delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/03/23/04:48:08

Date: Sat, 23 Mar 1996 12:44:58 +0300 (MSK)
From: "Alexander V. Lukyanov" <lav AT video DOT yars DOT free DOT net>
Message-Id: <199603230944.MAA10090@video.yars.free.net>
To: dj AT delorie DOT com
Cc: djgpp-workers AT delorie DOT com, eliz AT is DOT elta DOT co DOT il
Subject: Re: Faster floppy I/O

> > 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019