C language fseek function

https‮www//:‬.lautturi.com
C language fseek function

Fseek function is used to reposition the file pointer (reading or writing will start from the pointer position)

Assume the file has 100 bytes:

FILE* fp;
fseek(fp, 45, SEEK_SET); // 0+45
fseek(fp, 45, SEEK_END); // 100-45=55 
fseek(fp, 10, SEEK_CUR); // 55+10 = 65
Created Time:2017-08-28 19:02:15  Author:lautturi