.\" Generated by the Allegro makedoc utility .TH pack_ungetc 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME pack_ungetc \- Moves one single character back to the input buffer. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int pack_ungetc(int c, PACKFILE *f); .SH 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. .SH "RETURN VALUE" Returns c on success, or EOF on error. .SH SEE ALSO .BR pack_getc (3alleg4), .BR pack_fgets (3alleg4)