Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)

vprintf(3) Guardian Native C Library Calls Reference Manual
NAME
vprintf - Formats a variable number of parameters for output
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <stdarg.h>
#include <stdio.h>
int vprintf(
const char *format,
va_list printarg
);
PARAMETERS
format Species a character string that contains two types of objects:
Plain characters, which are copied to the output stream.
Conversion specications, each of which causes zero or more items to be
fetched from the stdarg parameter lists.
printarg Species the parameters to be printed.
DESCRIPTION
The vprintf( ) function formats and writes stdarg parameter lists.
This function is the same as the printf( ) function, except that it is not called with a variable
number of parameters. Instead, it is called with a parameter list pointer as dened by stdarg.
RETURN VALUES
Upon successful completion, this function returns the number of bytes in the output string. Oth-
erwise, a negative value is returned.
ERRORS
The vprintf( ) function fails if the standard output stream is unbuffered, or if the buffer needed to
be ushed and the function call caused an underlying write() or lseek() function to be invoked.
In addition, if the vprintf( ) function fails, errno is set to one of the following values:
[EAGAIN] The O_NONBLOCK ag is set for the le descriptor underlying the output
stream and the process would be delayed in the write operation.
[EBADF] The le descriptor underlying the output stream is not a valid le descriptor open
for writing.
[EFBIG] An attempt was made to write at or beyond the le offset maximum. |
[EILSEQ] An invalid wide character was detected.
[EINTR] The operation was interrupted by a signal that was caught, and no data was
transferred.
754 Hewlett-Packard Company 527192-007