1al_fungetc(3)                                                    al_fungetc(3)
2
3
4

NAME

6       al_fungetc - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              int al_fungetc(ALLEGRO_FILE *f, int c)
12

DESCRIPTION

14       Ungets a single byte from a file.  Pushed-back bytes are not written to
15       the file, only made available for subsequent reads, in reverse order.
16
17       The number of pushbacks depends on the backend.  The standard I/O back‐
18       end  only guarantees a single pushback; this depends on the libc imple‐
19       mentation.
20
21       For backends that follow the standard  behavior,  the  pushback  buffer
22       will be cleared after any seeking or writing; also calls to al_fseek(3)
23       and al_ftell(3) are relative to the number of pushbacks.  If a pushback
24       causes the position to become negative, the behavior of al_fseek(3) and
25       al_ftell(3) are undefined.
26

SEE ALSO

28       al_fgetc(3), al_get_errno(3)
29
30
31
32Allegro reference manual                                         al_fungetc(3)
Impressum