how to compare first byte of 512 block?
char buffer[512];
for (int i = 0; i < 20000000/512; i++)
{
fread(&buffer, 512, 1, inpt_file);
if (strcmp(buffer[0],0xff) == 0)
{
printf("FF found.\n");
}
}
Without giving away the answer to your specific question, here's a hint.
if( <condition_a> && <condition b>... )
This should get you going.