First post, by NewRisingSun
NewRisingSun
Offline
Rank
Oldbie
I agree that fwrite should have sector_size as the third rather than the second parameter so as not to always return 1, but I don't understand why it makes a difference whether the last action was a read or write for deciding whether fseek is needed or not.