Syntax
void OutStdV( 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` for `OutStd()`. Use this from a variadic function that forwards output to the standard stream or the active terminal when redirected there. Use `va_copy()` if you need to reuse the argument list after the call.
Example
#include "xdev-wtui.h"
// The own function passes its values on
static void Log( const char *format, ... )
{
va_list args;
va_start( args, format );
OutStdV( format, args );
va_end( args );
}
int main( void )
{
Log( "Started at %s.\n", OsTime() );
return 0;
}