fread(&quad, sizeof(FIRSTFOUR), 1, inptr); so I get the first four bytes (FIRSTFOUR is a struct with four BYTES defined first, second, third, fourth) but how do I compare quad.first to oxff, etc???? strncmp compares strings, == does not seem to work. Do I have to get it into a variable first? char variable_first = quad.first then compare?? seems wrong.