Syntax
void DispOutF( const char *color, const char *format, ... );
Arguments
color Color string for this call, or NULL to use the current color.
format printf-style format. NULL is treated as empty text.
... Values for the conversions in format.
Return value
No return value.
Description
Format values using `printf()` conversions, then draw the result at the current cursor with `DispOut()`. The text stays on the current row and stops at the right edge. Pass a color pair first, or `NULL` for the current color.
The format and its values follow the color argument. The declaration enables format checking on supported compilers. Use `DispOutV()` when you already have a `va_list`.
Example
#include "xdev-wtui.h"
int main( void )
{
SetPos( 2, 5 );
DispOutF( "GR+/B", "Total: %.2f", 1234.5 );
Inkey( 0, NIL );
return 0;
}