Re: [cc65] scratch files on C64 or file spec and drive numbers

From: Oliver Schmidt <ol.sc1web.de>
Date: 2008-09-24 10:38:52
Hi,

> ----------------------------------------------------------------------------
> /* The file stream implementation and the POSIX I/O functions will use the
>  * following variables to determine the file type and the disk unit to use.
>  */
> extern unsigned char _curunit;          /* Default 8 */
> extern unsigned char _filetype;         /* Default 'u' */
> ----------------------------------------------------------------------------

Maybe I'm heading in the wrong direction, but wouldn't it be nice
create a one-level pseudo-directory hierarchy with the device units
being the directories resulting in file names like "/8/myfile.prg".
With chdir() and getcwd() setting and getting the device unit...

Just an idea...

Best, Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Sep 24 10:38:59 2008

This archive was generated by hypermail 2.1.8 : 2008-09-24 10:39:01 CEST