184.108.40.206 The fseek function
int fseek(FILE *stream, long int offset, int whence);
The fseek function sets the file position indicator for the stream
pointed to by stream .
For a binary stream, the new position, measured in characters from
the beginning of the file, is obtained by adding offset to the
position specified by whence. The specified point is the beginning
of the file for SEEK_SET, the current value of the file position
indicator for SEEK_CUR, or end-of-file for SEEK_END. A binary
stream need not meaningfully support fseek calls with a whence value
For a text stream, either offset shall be zero, or offset shall be
a value returned by an earlier call to the ftell function on the same
stream and whence shall be SEEK_SET .
A successful call to the fseek function clears the end-of-file
indicator for the stream and undoes any effects of the ungetc function
on the same stream. After an fseek call, the next operation on an
update stream may be either input or output.
The fseek function returns nonzero only for a request that cannot
Forward references: the ftell function ($220.127.116.11).
fseek(ifp, 0x1a000L, SEEK_SET);