home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/stdio/c/RCS/ungetc,v $
- * $Date: 1996/04/19 21:32:42 $
- * $Revision: 1.1 $
- * $State: Rel $
- * $Author: simon $
- *
- * $Log: ungetc,v $
- * Revision 1.1 1996/04/19 21:32:42 simon
- * Initial revision
- *
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id: ungetc,v 1.1 1996/04/19 21:32:42 simon Rel $";
-
- #include <stdio.h>
-
- __STDIOLIB__
-
- #define ungetc(c,f) \
- (((f)->i_ptr > (f)->i_base) ? ((f)->i_cnt++,*--(f)->i_ptr = (c)) : -1)
-
- int (ungetc) (register int c, register FILE * f)
- {
- return (ungetc (c, f));
- }
-