-unsigned int cbm_load(const char* name, unsigned char device,
- const char* data);
+unsigned int cbm_load (const char* name, unsigned char device,
+ const char* data);
/* Loads file "name" from given device to given address or to the load
* address of the file if "data" is the null pointer (like load"name",8,1
* in BASIC).
* otherwise 0. "_oserror" contains an errorcode then (see table below).
*/
-unsigned char cbm_save(const char* name, unsigned char device,
+unsigned char cbm_save (const char* name, unsigned char device,
unsigned char* data, unsigned int size);
/* Saves "size" bytes starting at "data" to a file.
* Returns 0 if saving was successful, otherwise an errorcode (see table
* table below).
*/
-int cbm_write(unsigned char lfn, void* buffer, unsigned int size);
+int __fastcall__ cbm_write (unsigned char lfn, void* buffer, unsigned int size);
/* Writes up to "size" bytes from "buffer" to a file.
* Returns the number of actually written bytes or -1 in case of an error.
* _oserror contains an errorcode then (see table below).
*/
-
+
/* Errorcodes of cbm_* I/O functions:
*
* errorcode BASIC error
;
; Original C code by Marc 'BlackJack' Rintsch, 25.03.2001
;
-; int cbm_write(unsigned char lfn, void* buffer, unsigned int size) {
-;
+; int __fastcall__ cbm_write(unsigned char lfn, void* buffer, unsigned int size)
+; {
+;
; static unsigned int byteswritten;
;
; /* if we can't change to the outputchannel #lfn then return an error */