.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_fseek" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_fseek - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include bool al_fseek(ALLEGRO_FILE *f, int64_t offset, int whence) \f[R] .fi .SH DESCRIPTION .PP 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 .PP al_ftell(3alleg5), al_get_errno(3alleg5)