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

vfprintf Writes formatted output to a stream.<br />

#include <br />

#include <br />

int vfprintf(<br />

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

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

va_list arg /* argument list */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

The vfprintf() function is equivalent to fprintf(), with the variable argument<br />

list replaced by arg, which should have been initialized by the va_start macro<br />

(and possibly subsequent va_arg calls). The vfprintf function does not invoke<br />

the va_end macro.<br />

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

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

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

arg A list of arguments to be written according to the<br />

specifications of the format control string.<br />

This function returns the number of characters written. If a write error occurs, this<br />

function returns a negative number and sets errno.<br />

Refer to Appendix B.<br />

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

3

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

Saved successfully!

Ooh no, something went wrong!