logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pack_ungetc - Moves one single character back to the input buffer. Allegro game programming library.

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.

Name

       pack_ungetc - Moves one single character back to the input buffer. Allegro game programming library.

Return Value

       Returns c on success, or EOF on error.

See Also

pack_getc(3alleg4), pack_fgets(3alleg4)

Allegro                                           version 4.4.3                             pack_ungetc(3alleg4)

Synopsis

#include<allegro.h>intpack_ungetc(intc,PACKFILE*f);

See Also