*/
#include <cbm.h>
-
-extern unsigned char _oserror;
+#include <errno.h>
/* loads file "name" from given device to given address or to the load address
* of the file if addr is 0
*/
#include <cbm.h>
-
-extern unsigned char _oserror;
+#include <errno.h>
/* It's like BASIC's: OPEN lfn, device, sec_addr, "name"
*/
*/
#include <cbm.h>
-
-extern unsigned char _oserror;
+#include <errno.h>
int cbm_read(unsigned char lfn, void* buffer, unsigned int size)
{
*/
#include <cbm.h>
-
-extern unsigned char _oserror;
+#include <errno.h>
/* saves a memory area from start to end-1 to a file.
*/
*/
#include <cbm.h>
-
-extern unsigned char _oserror;
+#include <errno.h>
int cbm_write(unsigned char lfn, void* buffer, unsigned int size) {
}
if (cbm_k_readst()) {
- _oserror = 5; /* device not present */
+ _oserror = 5; /* device not present */
byteswritten = -1;
}