Functions

OutStd

Write text to standard output

Syntax

Signature
void OutStd( const char *text );

Arguments

text NUL-terminated text. NULL is treated as empty text.

Return value

No return value.

Description

Write text directly to the process's standard output stream and flush it. The call writes the supplied string as-is, so include line breaks in the text when needed. This is suitable for output that will be redirected or piped to another program and can be used without opening a terminal window.

With `GtSetStdOutConsole( T )`, the text goes to the active terminal window instead. Use `OutStdF()` to format values for the same destination.

Example

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

int main( void )
{
   OutStd( "Operation completed.\n" );

   return 0;
}