[hatari-devel] Wotanoid problem : Fixed for me ;)
George Nakos
ggn at hol.gr
Sun Jan 24 00:38:50 CET 2010
Hello Laurent,
Sunday, January 24, 2010, 1:21:17 AM, you wrote:
> Sorry, little mistake, the problem is in Fread, not Fopen.
> I've looked at the compendium.
> I haven't found anything about this -1 length call.
My memory is a bit hazy, but I think this just tells gemdos to read
$ffffffff bytes from the file. Of course gemdos will read as much as
the file size and then return an error in d0.l. It's the lazy man's
approach to doing things the Right Way(tm) (i.e. getting the file
length -or knowing it beforehand- and calling fread() with the proper
amount of bytes)
--
Best regards,
George mailto:ggn at hol.gr
More information about the hatari-devel
mailing list