home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 2 / DATAFILE_PDCD2.iso / utilities2 / unixlib36d / UnixLib36d / src / stdio / c / ungetc < prev   
Encoding:
Text File  |  1994-03-08  |  315 b   |  16 lines

  1. static char sccs_id[] = "@(#) ungetc.c 1.2 " __DATE__ " HJR";
  2.  
  3. /* ungetc.c (c) Copyright 1990 H.Rogers */
  4.  
  5. #include <stdio.h>
  6.  
  7. __STDIOLIB__
  8.  
  9. #define ungetc(c,f) \
  10.     (((f)->i_ptr > (f)->i_base) ? ((f)->i_cnt++,*--(f)->i_ptr = (c)) : -1)
  11.  
  12. int (ungetc) (register int c, register FILE * f)
  13. {
  14.   return (ungetc (c, f));
  15. }
  16.