contents   index   previous   next



Clib.ungetc()

syntax:

Clib.ungetc(chr, filePointer)

where:

chr - character to write to file.

 

filePointer - pointer to file to use.

 

return:

number - on success, the character put back into a file stream, else EOF.

 

description:

This method pushes character chr back into an input stream. When chr is put back, it is converted to a byte and is again in an input stream for subsequent retrieval. Only one character is guaranteed to be pushed back. The method returns chr on success, else EOF on failure.

 

see:

Clib.getc()

 

 


Directory