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

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

#include <br />

#include <br />

int puts(<br />

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

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

See Also<br />

The puts() function writes a string to the standard output stream, and appends a<br />

new-line character to the output. The terminating null character is not written.<br />

s Points to the string to write.<br />

The puts() function returns 0 if the operation is successful and EOF if the<br />

operation fails. If an error occurs, the stream’s error indicator and errno are set.<br />

Refer to Appendix B.<br />

Callable From<br />

■ Task<br />

gets, fputs<br />

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

3

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

Saved successfully!

Ooh no, something went wrong!