1pack_ungetc(3) Allegro manual pack_ungetc(3)
2
3
4
6 pack_ungetc - Moves one single character back to the input buffer.
7 Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 int pack_ungetc(int c, PACKFILE *f);
14
16 Puts a character back to the file's input buffer. Like with ungetc from
17 libc, only a single push back is guaranteed.
18
19 Note: pack_fgets internally uses pack_ungetc, so never use pack_ungetc
20 directly after using pack_fgets on a PACKFILE.
21
23 Returns c on success, or EOF on error.
24
25
27 pack_getc(3), pack_fgets(3)
28
29
30
31Allegro version 4.2.2 pack_ungetc(3)