Nп/п : 14 из 47
 От   : Colin Leroy-Mira                    2:5075/128        10 авг 23 18:22:25
 К    : Colin Leroy-Mira                                      10 авг 23 19:25:02
 Тема : Re: cc65: file I/O on external drive?
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <20230810182225.7571b259@laptop-sigfox>
0afddc60
@REPLY: <20230810180315.19b34c79@laptop-sigfox>
952ba991
@REPLYADDR Colin Leroy-Mira <colin@colino.net>
@REPLYTO 2:5075/128 Colin Leroy-Mira
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<20230810182225.7571b259@laptop-sigfox>
<20230810153128.037b45e2@laptop-sigfox><mmphosis-1691679708@macgui.com><20230810
180315.19b34c79@laptop-sigfox>
@TZUTC: 0200
@TID: FIDOGATE-5.12-ge4e8b94
Hi,

>>I thought that the slot and drive would be specified in the pathname.
>>For example: FILE,S6,D1 but maybe not. There is a low level DEV_NUM
>>and I found these device.h helper functions...
>>
>>https://cc65.github.io/doc/funcref.html#ss2.20
>>
>>unsigned char getfirstdevice (void);
>>unsigned char __fastcall__ getnextdevice (unsigned char device);
>>unsigned char getcurrentdevice (void);  

This is in fact extremely easy: you just fopen("/PREFIX/FILENAME") and
it finds the correct drive all by itself :)
-- 
Colin
https://www.colino.net/

--- Claws Mail 3.19.1git30 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 * Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх