-unsigned int cbm_load (const char* name, unsigned char device,
- const char* data);
+unsigned int cbm_load (const char* name, unsigned char device, void* 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).
*/
unsigned char cbm_save (const char* name, unsigned char device,
- unsigned char* data, unsigned int size);
+ const void* data, unsigned int size);
/* Saves "size" bytes starting at "data" to a file.
* Returns 0 if saving was successful, otherwise an errorcode (see table
* below).
* Marc 'BlackJack' Rintsch, 06.03.2001
*
* unsigned int cbm_load(const char* name,
- * unsigned char device,
+ * unsigned char device,
* const unsigned char* data);
*/
/* loads file "name" from given device to given address or to the load address
* of the file if "data" is 0
*/
-unsigned int cbm_load(const char* name, unsigned char device,
- const char* data)
+unsigned int cbm_load(const char* name, unsigned char device, void* data)
{
/* LFN is set to 0 but it's not needed for loading.
* (BASIC V2 sets it to the value of the SA for LOAD) */
/* saves a memory area from start to end-1 to a file.
*/
unsigned char cbm_save(const char* name, unsigned char device,
- unsigned char* data, unsigned int size)
+ const void* data, unsigned int size)
{
cbm_k_setlfs(0, device, 0);
cbm_k_setnam(name);