Positions the file pointer in a file.
For files opened for update (see
fopen()), the next operation can be a
read or a write.
fseek() procedure is not reliable when used on files opened in text mode (see
fopen()). This has to do with the conversion of carriage return-linefeed
sequences to newlines. In particular, an
fseek() that follows one of the
fputxxx commands may not produce the expected result.
p = ftell(f); s = fgetsa(f, 7); call fseek(f, p, 0);
p = ftell(f); s = fgetsa(f, 7); call fseek(f, 0, 0); call fseek(f, p, 0);