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.

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

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

#include <br />

#include <br />

int fputc(<br />

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

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

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

The fputc() function writes the character specified by c to the output stream<br />

pointed to by stream after converting it to an unsigned char. This function<br />

operates the same as the putc function.<br />

If stream designates a disk file, its position indicator is advanced appropriately.<br />

c Specifies the character to write.<br />

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

This function returns the character written. If a write error occurs, the stream's<br />

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

Refer to Appendix B.<br />

3-48 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

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

Saved successfully!

Ooh no, something went wrong!