Rémi Guyomarch writes: > + pos = ftell( state->pass1_file ); > + fseek( state->pass1_file, pos, SEEK_SET ); Is there any reason not to use the simpler "fseek(state->pass1_file, 0L, SEEK_CUR);"?