15 #include "inputfiles.h"
17 static int probe(FILE *file,
const char *fname, cbmcopy_message_cb msg_cb)
23 static int read(FILE *file,
const char *fname,
int entry,
24 char *cbmname,
char *type,
25 unsigned char **data,
size_t *size,
26 cbmcopy_message_cb msg_cb)
31 tail = strrchr(fname,
'/');
32 tail2 = strrchr(fname,
'\\');
42 strncpy(cbmname, tail ? tail+1 : fname, 16);
43 for(tail = cbmname; *tail; tail++)
58 if(entry == 0 && fseek( file, 0L, SEEK_END ) == 0 )
63 *data = malloc(*size);
67 if(fread(*data, *size, 1, file) == 1)
82 DECLARE_INPUT_READER(raw);
DLL interface for accessing the driver.
char CBMAPIDECL cbm_ascii2petscii_c(char Character)
Convert an ASCII character to PETSCII.