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