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> putc<br />

putc Writes a character to a stream.<br />

#include <br />

#include <br />

int putc(<br />

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

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

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

See Also<br />

The putc() function writes the character specified by c (converted to an unsigned<br />

char) to the stream pointed to by stream. stream’s position indicator (if defined) is<br />

advanced on a successful write.<br />

c Specifies the character to write.<br />

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

The putc() function returns c. If a write error occurs, the error flag for the stream<br />

is set, EOF is returned, and errno is set.<br />

Refer to Appendix B.<br />

Callable From<br />

■ Task<br />

getc, putchar<br />

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

3

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

Saved successfully!

Ooh no, something went wrong!