06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

pREPC+ <strong>System</strong> <strong>Calls</strong> ungetc<br />

ungetc Ungets a character.<br />

#include <br />

#include <br />

int ungetc(<br />

int c, /* character */<br />

FILE *stream /* stream pointer */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

The ungetc() function pushes a character (c), converted to an unsigned char,<br />

back to the specified stream. The character is returned on the next read operation<br />

on the stream. A call to fseek(), fsetpos(), rewind(), or fflush() ignores the<br />

character.<br />

The stream’s position indicator is not changed by this call.<br />

c Specifies the character to be pushed.<br />

stream Points to an open pREPC+ stream.<br />

This function returns the contents of c. If an error occurs, the function returns EOF<br />

and sets errno.<br />

Refer to Appendix B.<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 3-181<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!