


XtAppGetErrorDatabase(3Xt)			   XtAppGetErrorDatabase(3Xt)
X11R5									X11R5



NAME
  XtAppGetErrorDatabase, XtAppGetErrorDatabaseText - obtain error database

SYNTAX
  XrmDatabase *XtAppGetErrorDatabase(_a_p_p__c_o_n_t_e_x_t)
       XtAppContext _a_p_p__c_o_n_t_e_x_t;

  void XtAppGetErrorDatabaseText(_a_p_p__c_o_n_t_e_x_t, _n_a_m_e, _t_y_p_e, _c_l_a_s_s, _d_e_f_a_u_l_t,
  _b_u_f_f_e_r__r_e_t_u_r_n, _n_b_y_t_e_s, _d_a_t_a_b_a_s_e)
	 XtAppContext _a_p_p__c_o_n_t_e_x_t;
	 char *_n_a_m_e, *_t_y_p_e, *_c_l_a_s_s;
	 char *_d_e_f_a_u_l_t;
	 char *_b_u_f_f_e_r__r_e_t_u_r_n;
	 int _n_b_y_t_e_s;
	 XrmDatabase _d_a_t_a_b_a_s_e;

ARGUMENTS

  _a_p_p__c_o_n_t_e_x_t
	    Specifies the application context.

  _b_u_f_f_e_r__r_e_t_u_r_n
	    Specifies the buffer into which the	error message is to be
	    returned.

  _c_l_a_s_s	    Specifies the resource class of the	error message.

  _d_a_t_a_b_a_s_e  Specifies the name of the alternative database that	is to be used
	    or NULL if the application's database is to	be used.

  _d_e_f_a_u_l_t   Specifies the default message to use.

  _n_a_m_e
  _t_y_p_e	    Specifies the name and type	that are concatenated to form the
	    resource name of the error message.

  _n_b_y_t_e_s    Specifies the size of the buffer in	bytes.

DESCRIPTION
  The _X_t_A_p_p_G_e_t_E_r_r_o_r_D_a_t_a_b_a_s_e function returns the address of the	error data-
  base.	 The Intrinsics	do a lazy binding of the error database	and do not
  merge	in the database	file until the first call to _X_t_A_p_p_G_e_t_E_r_r_o_r_D_a_t_-
  _b_a_s_e_T_e_x_t.

  The _X_t_A_p_p_G_e_t_E_r_r_o_r_D_a_t_a_b_a_s_e_T_e_x_t	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)
  _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s - _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e	delim off






