Re: [cc65] Need to pass drive number in addition to device number to cbm_opendir

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-05-27 13:15:58
On Sat, May 26, 2012 at 11:56:34PM -0500, Payton Byrd wrote:
>    Since cbm_opendir doesn't take a string for the directory command
>    (something which should also be considered), we need a method to open a
>    directory on a specific drive.

What is wrong with assigning to _curunit?

From cbm.h:

/* 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;  /* Defaults to current when program started */
extern char _filetype;          /* Defaults to 'u' */

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun, 27 May 2012 13:15:58 +0200

This archive was generated by hypermail 2.1.8 : 2012-05-27 13:21:59 CEST