[AD] pack_ungetc

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Why is it not in the docs? Attached is a patch to add it.. in case it
should be in there.

-- 
Elias Pschernig <elias@xxxxxxxxxx>
Index: docs/src/allegro._tx
===================================================================
--- docs/src/allegro._tx	(revision 7888)
+++ docs/src/allegro._tx	(working copy)
@@ -10670,6 +10670,13 @@
    Returns the next character from the stream `f', or EOF if the end of the
    file has been reached.
 
+@@int @pack_ungetc(PACKFILE *f);
+@xref pack_getc
+@shortdesc Moves one single character back to the input buffer.
+   Puts a character back in the file's input buffer. It only works
+   for characters just fetched by pack_getc and, like ungetc, only a
+   single push back is guaranteed.
+
 @@int @pack_putc(int c, PACKFILE *f);
 @xref pack_fopen, pack_fopen_chunk
 @shortdesc Puts a character in the stream.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/