pack_ungetc(3alleg4)

pack_ungetc3alleg4

Moves one single character back to the input buffer. allegro game programming library.

Usage

#include <allegro.h>

int pack_ungetc(int c, PACKFILE *f);

Overview

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.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.