I'm working on recover.c.
It seems like a tidy solution to eliminate fseek calls would be to create a struct like the following:
typedef struct
{
BYTE first;
BYTE second;
BYTE third;
BYTE fourth;
508*sizeof(BYTE) remaining;
}
BUFFER;
That way I could write data to the buffer, then immediately check parts of the buffer without modifying the read head with fseek.
But I don't know how to actually accomplish the 5th element of that structure. Is it possible to create an element of 508 bytes to put in there?
(Apparently I can also just malloc 512 bytes, then use sizeof(BYTE) to check, so I'll be looking into that solution while I await an answer here!)