06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

printf Prints formatted output to stdout.<br />

#include <br />

#include <br />

long printf(<br />

const char *format, /* format control */<br />

... /* arguments 1 through n */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

The printf() function is equivalent to fprintf(), except that the output is<br />

directed to the standard output device instead of a file designated by an input<br />

parameter.<br />

format Points to the format control string. For more information,<br />

see fprintf on page 3-43.<br />

... Arguments 1 through n to be written according the<br />

specifications of the control string.<br />

This function returns either the number of characters written or EOF if a write error<br />

occurs. If an error occurs, errno is set.<br />

Refer to Appendix B.<br />

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

3

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

Saved successfully!

Ooh no, something went wrong!