al_fseek(3alleg5)

al_fseek3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro.h>
bool al_fseek(ALLEGRO_FILE *f, int64_t offset, int whence)

Overview

Set the current position of the given file to a position relative to that specified by `whence', plus `offset' number of bytes.

`whence' can be:

•

ALLEGRO_SEEK_SET - seek relative to beginning of file

•

ALLEGRO_SEEK_CUR - seek relative to current file position

•

ALLEGRO_SEEK_END - seek relative to end of file

Returns true on success, false on failure. errno is set to indicate the error.

After a successful seek, the end-of-file indicator is cleared and all pushback bytes are forgotten.

On some platforms this function may not support large files.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.