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.

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

fputs Writes a string to a stream.<br />

#include <br />

#include <br />

int fputs(<br />

const char *s, /* string */<br />

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

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

See Also<br />

The fputs() function writes the string pointed to by s to the stream pointed to by<br />

stream. The terminating null character is not written.<br />

s Points to the string to be written.<br />

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

This function returns zero if the operation succeeds and EOF if it fails. If an error<br />

occurs, errno is set.<br />

Refer to Appendix B.<br />

Callable From<br />

■ Task<br />

fgets<br />

3-50 <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!