Re: [cc65] ftell and fseek unavailable on c64?

Date view Thread view Subject view

From: Christian Groessler (chris_at_groessler.org)
Date: 2003-11-18 23:32:18


On Tue, 18 Nov 2003, Ullrich von Bassewitz wrote:

>
> On Tue, Nov 18, 2003 at 10:17:16PM +0100, Game 64 - Benjamin Bahnsen wrote:
> > Are these function unavailable on the c64?
>
> Yes. If implemented, they would be slow like hell, since the only way to seek
> on a file opened on the floppy is to close it, reopen it, and then read all
> data up to the given point. Using SEEK_END is even more difficult, since the
> length of a file can only be determined by reading it completely.
>
> As far as I know, the Atari machines are currently the only ones that have
> ftell/fseek.

Also it will only work on DOSses that support it (SpartaDOS).

regards,
chris


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-11-18 23:35:41 CET