06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

getc Gets a character from a stream.<br />

#include <br />

#include <br />

int getc(<br />

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

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

See Also<br />

This function is equivalent to the fgetc() function. It reads the next character<br />

from a specified stream.<br />

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

This function returns the character that is read. If an end-of-file condition is<br />

detected, the stream's end-of-file indicator is set. If a read error occurs, the stream's<br />

error flag is set. In both cases, EOF is returned. If an error occurs, errno is set.<br />

Refer to Appendix B.<br />

Callable From<br />

■ Task<br />

putc<br />

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

3

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

Saved successfully!

Ooh no, something went wrong!