pack_ungetc (3) - Linux Manuals
pack_ungetc: Moves one single character back to the input buffer. Allegro game programming library.
Command to display pack_ungetc
manual in Linux: $ man 3 pack_ungetc
NAME
pack_ungetc - Moves one single character back to the input buffer. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int pack_ungetc(int c, PACKFILE *f);
DESCRIPTION
Puts a character back to the file's input buffer. Like with ungetc from
libc, only a single push back is guaranteed.
Note: pack_fgets internally uses pack_ungetc, so never use pack_ungetc
directly after using pack_fgets on a PACKFILE.
RETURN VALUE
Returns c on success, or EOF on error.
Pages related to pack_ungetc
- pack_fclose (3) - Closes a stream previously opened. Allegro game programming library.
- pack_fclose_chunk (3) - Closes a previously opened sub-chunk. Allegro game programming library.
- pack_feof (3) - Returns nonzero as soon as you reach the end of the file. Allegro game programming library.
- pack_ferror (3) - Tells if an error occurred during an operation on the stream. Allegro game programming library.
- pack_fgets (3) - Reads a line from the stream. Allegro game programming library.
- pack_fopen (3) - Opens a file according to mode. Allegro game programming library.
- pack_fopen_chunk (3) - Opens a sub-chunk of a file. Allegro game programming library.
- pack_fopen_vtable (3) - Allegro game programming library.
- pack_fputs (3) - Writes a string to the stream. Allegro game programming library.