mirror of
https://github.com/cc65/cc65.git
synced 2024-08-19 17:29:37 +00:00
20 lines
520 B
C
20 lines
520 B
C
/*
|
|
* Marc 'BlackJack' Rintsch, 18.03.2001
|
|
*
|
|
* unsigned char cbm_open(unsigned char lfn, unsigned char device,
|
|
* unsigned char sec_addr, const char* name);
|
|
*/
|
|
|
|
#include <cbm.h>
|
|
#include <errno.h>
|
|
|
|
/* It's like BASIC's: OPEN lfn, device, sec_addr, "name"
|
|
*/
|
|
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);
|
|
return _oserror = cbm_k_open();
|
|
}
|