Please check the manual page fseek(3).