XtAppGetErrorDatabase(3Xt)
Name
XtAppGetErrorDatabase, XtAppGetErrorDatabaseText − obtain error database
Syntax
XrmDatabase *XtAppGetErrorDatabase(app_context)
XtAppContext app_context;
void XtAppGetErrorDatabaseText(app_context, name, type, class, default, buffer_return, nbytes, database)
XtAppContext app_context;
char *name, *type, *class;
char *default;
char *buffer_return;
int nbytes;
XrmDatabase database;
Arguments
app_contextSpecifies the application context.
buffer_returnSpecifies the buffer into which the error message is to be returned.
classSpecifies the resource class of the error message.
databaseSpecifies the name of the alternative database that is to be used or NULL if the application’s database is to be used.
defaultSpecifies the default message to use.
name
typeSpecifies the name and type that are concatenated to form the resource name of the error message.
nbytesSpecifies the size of the buffer in bytes.
Description
The XtAppGetErrorDatabase function returns the address of the error database. The Intrinsics do a lazy binding of the error database and do not merge in the database file until the first call to XtAppGetErrorDatbaseText.
The XtAppGetErrorDatabaseText returns the appropriate message from the error database or returns the specified default message if one is not found in the error database.
See Also
XtAppError(3Xt), XtAppErrorMsg(3Xt)
Guide to the XUI Toolkit Intrinsics
Guide to the Xlib Library