]> pd.if.org Git - pdclib/blob - functions/stdio/ungetc.c
Re-import from Subversion.
[pdclib] / functions / stdio / ungetc.c
1 /* ----------------------------------------------------------------------------
2  * $Id$
3  * ----------------------------------------------------------------------------
4  * Public Domain C Library - http://pdclib.sourceforge.net
5  * This code is Public Domain. Use, modify, and redistribute at will.
6  * --------------------------------------------------------------------------*/
7
8 int ungetc( int c, FILE * stream ) { /* TODO */ };
9
10 /* PDPC code - unreviewed
11 {
12     if ((stream->ungetCh != -1) || (c == EOF))
13     {
14         return (EOF);
15     }
16     stream->ungetCh = (unsigned char)c;
17     stream->quickText = 0;
18     return ((unsigned char)c);
19 }
20 */