home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
msdos
/
c
/
jplc1.arc
/
UNGETC.C
< prev
next >
Wrap
Text File
|
1988-07-22
|
720b
|
25 lines
/* 1.0 12-17-84 */
/************************************************************************
* Robert C. Tausworthe *
* Jet Propulsion Laboratory *
* Pasadena, CA 91009 1984 *
************************************************************************/
#include "defs.h"
#include "stdtyp.h"
#include "stdio.h"
/************************************************************************/
METACHAR
ungetc(c, fp) /* Push c back onto FILE fp stream, and return c.
Return EOF if c is EOF. */
/*----------------------------------------------------------------------*/
FAST FILE *fp;
{
if ((c IS EOF) OR (fp->_bptr <= fp->_buff))
return EOF;
return (*--fp->_bptr = c);
}