.\" Automatically generated by Pandoc 3.6.1 .\" .TH "al_fseek" "3" "" "Allegro reference manual" .SH NAME al_fseek \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] bool al_fseek(ALLEGRO_FILE *f, int64_t offset, int whence) .EE .SH DESCRIPTION Set the current position of the given file to a position relative to that specified by `whence', plus `offset' number of bytes. .PP `whence' can be: .IP \[bu] 2 ALLEGRO_SEEK_SET \- seek relative to beginning of file .IP \[bu] 2 ALLEGRO_SEEK_CUR \- seek relative to current file position .IP \[bu] 2 ALLEGRO_SEEK_END \- seek relative to end of file .PP Returns true on success, false on failure. errno is set to indicate the error. .PP After a successful seek, the end\-of\-file indicator is cleared and all pushback bytes are forgotten. .PP On some platforms this function may not support large files. .SH SEE ALSO al_ftell(3), al_get_errno(3)