SilverScreen Solid Modeler

ungetc

ungetc

Previous topic Next topic  

ungetc

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

int ungetc( int c, FILE *fp )

 

int   c;          /* a character */

FILE *fp;         /* open input stream */

 

 




Synopsis

#include "stdio.h"

 

The ungetc function pushes character c back onto stream fp , where it will be returned by the next read operation. Only one character of pushback is guaranteed per stream.

 

 

Parameters

c is a character, expanded to int size. fp is a stream pointer, open for input.

 

 

Return Value

ungetc returns EOF if an error occurred, and c otherwise.

 

 

See Also

fputc , getc