XtAppSetWarningHandler() XtAppSetWarningHandler()
Name
XtAppSetWarningHandler - set the low-level warning handler.
Synopsis
XtErrorHandler XtAppSetWarningHandler(app_context, handler)
XtAppContext app_context;
XtErrorHandler handler;
Inputs
app_context
Specifies the application context.
handler Specifies the new nonfatal error procedure.
Returns
A pointer to the previously installed low-level error handler.
Description
XtAppSetWarningHandler() registers the procedure handler in app_context as the procedure to be invoked by XtAppWarning(). It returns a
pointer to the previously installed low-level warning handler.
The default low-level warning handler provided by the Intrinsics is _XtDefaultWarning(). On POSIX-based systems, it prints the message to
standard error and returns to the caller.
Usage
Note that application-context-specific error and warning handling is not implemented on many systems. Most implementations will have just
one set of error handlers. If they are set for different application contexts, the one performed last will prevail.
See Also
XtAppError(1), XtAppErrorMsg(1), XtAppSetErrorHandler(1), XtAppSetErrorMsgHandler(1), XtAppSetWarningMsgHandler(1), XtAppWarning(1), XtApp-
WarningMsg(1),
XtErrorHandler(2).
Xt - Error Handling XtAppSetWarningHandler()