1al_fseek(3)                                                        al_fseek(3)
2
3
4

NAME

6       al_fseek - Allegro 5 API
7

SYNOPSIS

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

DESCRIPTION

14       Set  the  current  position of the given file to a position relative to
15       that specified by `whence', plus `offset' number of bytes.
16
17       `whence' can be:
18
19       • ALLEGRO_SEEK_SET - seek relative to beginning of file
20
21       • ALLEGRO_SEEK_CUR - seek relative to current file position
22
23       • ALLEGRO_SEEK_END - seek relative to end of file
24
25       Returns true on success, false on failure.  errno is  set  to  indicate
26       the error.
27
28       After  a  successful seek, the end-of-file indicator is cleared and all
29       pushback bytes are forgotten.
30
31       On some platforms this function may not support large files.
32

SEE ALSO

34       al_ftell(3), al_get_errno(3)
35
36
37
38Allegro reference manual                                           al_fseek(3)
Impressum