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