> Basically i have a file that contains 12 structures and after the 12th structure fread should return a 0 but mine returns a 1
Yes, that is correct.

You have to attempt to read record 13 before...