Functions

OutErr

Write text to standard error

Syntax

Signature
void OutErr( const char *text );

Arguments

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

Return value

No return value.

Description

Write diagnostic text to the process's standard error stream and flush it. Each call writes the supplied string as-is. Include a newline when the diagnostic should end a line. Nonempty output can be sent to a file or pipe using the process's standard error redirection.

With `GtSetStdErrConsole( T )`, the text goes to the active terminal window instead. Plain stream output does not open a window. Use `OutErrF()` to format a diagnostic.

Example

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

int main( void )
{
   OutErr( "Could not open the input file.\n" );

   return 0;
}