3 /* ungetc( int, FILE * )
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
13 int ungetc( int c, struct _PDCLIB_file_t * stream )
15 if ( c == EOF || stream->ungetidx == _PDCLIB_UNGETCBUFSIZE )
19 return stream->ungetbuf[stream->ungetidx++] = (unsigned char) c;
25 #include <_PDCLIB_test.h>
29 /* Testing covered by ftell.c */