Shifts the current read/write position in a stream input/output file.
long fseek (FILE *fp, long offset, long type);
offset Offset from position specified by type of offset
The fseek function shifts the current read/write position in the stream input/output file indicated by file pointer fp by offset bytes from the position specified by type (the type of offset).
The types of offset are shown in Table 7.14.
The fseek function normally returns zero, but returns nonzero in response to an invalid request.
For a text file, the type of offset must be SEEK_SET and offset must be zero or the value returned by the ftell function for that file. Note also that calling the fseek function cancels the effect of the ungetc function.