1#ifndef CROSSPLATFORMIO_H
2#define CROSSPLATFORMIO_H
4#define CP_FILE_OPEN_ERROR 10000
5#define CP_FILE_CLOSE_ERROR 10001
6#define CP_FILE_EOF_ERROR 10002
7#define CP_FILE_READ_ERROR 10003
8#define CP_FILE_WRITE_ERROR 10004
9#define CP_FILE_POS_ERROR 10005
11#define CP_FILE_REF FILE*
13int CPCreateFile(
const char* fullFilePath,
int overwrite,
long macCreator,
long macFileType);
17int CPReadFile(
CP_FILE_REF fileRef,
unsigned long count,
void* buffer,
unsigned long* numBytesReadPtr);
19int CPWriteFile(
CP_FILE_REF fileRef,
unsigned long count,
const void* buffer,
unsigned long* numBytesWrittenPtr);