xprintf d727b10
|
xvprintf_protected() formats according to ISO-C printf()
specs and prints the result to an abstract channel.
More...
Data Structures | |
struct | xprintf_protectedChannel |
Information for the routine that writes the output of xprintf(). More... | |
Functions | |
int | xvprintf_protected (struct xprintf_protectedChannel *xprch, const char *format, va_list ap) |
Prints to a protected channel, analogous to vfprintf(). |
xvprintf_protected() formats according to ISO-C printf()
specs and prints the result to an abstract channel.
The abstract channel approach allows printing to any output medium. The caller must ensure that the channel is protected so that concurrent invocations of xvprintf_protected() will not disturb each other.
int xvprintf_protected | ( | struct xprintf_protectedChannel * | xprch, |
const char * | format, | ||
va_list | ap | ||
) |
Prints to a protected channel, analogous to vfprintf().
xvprintf_protected() will call xprch's
xprintf_protectedChannel.writeProtected() as often as necessary.
xprch | the protected channel |
format | the vfprintf() compatible format argument |
ap | the vfprintf() compatible va_list argument |