2001-03-20 21:06:04 +00:00
|
|
|
/*
|
|
|
|
* Marc 'BlackJack' Rintsch, 18.03.2001
|
|
|
|
*
|
|
|
|
* unsigned char cbm_open(unsigned char lfn, unsigned char device,
|
2001-03-30 18:18:40 +00:00
|
|
|
* unsigned char sec_addr, const char* name);
|
2001-03-20 21:06:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <cbm.h>
|
2001-09-15 23:39:47 +00:00
|
|
|
#include <errno.h>
|
2001-03-30 18:18:40 +00:00
|
|
|
|
|
|
|
/* It's like BASIC's: OPEN lfn, device, sec_addr, "name"
|
|
|
|
*/
|
2001-03-20 21:06:04 +00:00
|
|
|
unsigned char cbm_open(unsigned char lfn, unsigned char device,
|
|
|
|
unsigned char sec_addr, const char* name)
|
|
|
|
{
|
|
|
|
cbm_k_setlfs(lfn, device, sec_addr);
|
|
|
|
cbm_k_setnam(name);
|
2001-03-30 18:18:40 +00:00
|
|
|
return _oserror = cbm_k_open();
|
2001-03-20 21:06:04 +00:00
|
|
|
}
|