In C programming language, the fseek() function is used to seek the file pointer position.
Syntax:
int fseek(FILE *file_pointer, long int offset, int whence);
Where,
file_pointer− This is the pointer to a FILE object that identifies the stream.
offset − This is the number of bytes to offset from whence.
whence − This is the position from where offset is added, the value of this parameter may SEEK_SET, SEEK_CUR, or SEEK_END.
Discusssion
Login to discuss.