1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-31 20:06:11 +00:00
cc65/libsrc/cbm/cbm_save.c
Greg King 0390c34e88 Changed multi-line C comments into another style.
The left side doesn't look unbalanced.
2014-06-30 16:51:07 -04:00

25 lines
702 B
C

/*
** Marc 'BlackJack' Rintsch, 11.03.2001
**
** unsigned char cbm_save(const char* name,
** char device,
** unsigned char* data,
** unsigned int size);
*/
#include <cbm.h>
#include <errno.h>
/* saves a memory area from start to end-1 to a file.
*/
unsigned char __fastcall__ cbm_save (const char* name,
unsigned char device,
const void* data,
unsigned int size)
{
cbm_k_setlfs(0, device, 0);
cbm_k_setnam(name);
return _oserror =
cbm_k_save((unsigned int)data, ((unsigned int)data) + size);
}