//for printf() #include //for errno #include //for strerror() #include #include "fileReader.h" void initFileReader(unsigned char path[], unsigned long offset, unsigned long length) { //Opens the given file at the given address //Returns a function that will read into memory and return that memory. FILE *fileFrom = NULL; char* fileName = path; fileFrom = fopen(fileName, "r"); if (fileFrom == NULL) { fprintf(stderr, "Could not open file %s for reading: %s\n", fileName, strerror(errno)); //error(); } } unsigned char* readBytes(unsigned long numBytes) { //TODO }