Functions

QOutV

Start a new line in the text window and write formatted text from a va_list

Syntax

Signature
void QOutV( const char *format, va_list args );

Arguments

format printf-style format. NULL is treated as empty text.

args Values for the conversions in format, started with va_start() by the caller.

Return value

No return value.

Description

Format an existing `va_list` and write the result through `QOut()`, with a new line before the text. This form is useful when forwarding arguments from a variadic terminal output helper. Use `va_copy()` if you need to reuse the argument list after the call.

Example

qoutv.c
#include "xdev-wtui.h"

// The own function passes its values on
static void Report( const char *format, ... )
{
   va_list args;

   va_start( args, format );
   QOutV( format, args );
   va_end( args );
}

int main( void )
{
   Report( "%s: %d", "Errors", 0 );

   Inkey( 0, NIL );

   return 0;
}