Copyright (c) 1993, 1994 X Consortium

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Except as contained in this notice, the name of the X Consortium shall not
be used in advertising or otherwise to promote the sale, use or other
dealing in this Software without prior written authorization from the
X Consortium.

XtAppInitialize __libmansuffix__ __xorgversion__ "XT FUNCTIONS"
NAME
XtAppInitialize, XtVaAppInitialize - initialize, open, or close a display
SYNTAX
#include <X11/Intrinsic.h>

Widget XtAppInitialize(XtAppContext* app_context_return, const char *application_class, XrmOptionDescRec* options, Cardinal num_options, int *argc_in_out, char **argv_in_out, String *fallback_resources, ArgList args, Cardinal num_args);

Widget XtVaAppInitialize(XtAppContext* app_context_return, const char *application_class, XrmOptionDescRec* options, Cardinal num_options, int *argc_in_out, char **argv_in_out, String *fallback_resources, ...\^);

ARGUMENTS
app_context_return 1i
Specifies the application context.
application_class 1i
Specifies the class name of this application, which usually is the generic name for all instances of this application.
options 1i
Specifies how to parse the command line for any application-specific resources. The options argument is passed as a parameter to XrmParseCommand . For further information, see \*(xL.
num_options 1i
Specifies the number of entries in the options list.
argc_in_out 1i
Specifies a pointer to the number of command line parameters.
argv_in_out 1i
Specifies the command line parameters.
fallback_resources 1i
Specifies resource values to be used if the application class resource file cannot be opened or read, or NULL.
args 1i
Specifies the argument list to override any other resource specification for the created shell widget.
num_args 1i
Specifies the number of entries in the argument list.
... 1i
Specifies the variable argument list to override any other resource specification for the created shell widget.
DESCRIPTION
The XtAppInitialize function calls XtToolkitInitialize followed by XtCreateApplicationContext , then calls XtOpenDisplay with display_string NULL and application_name NULL, and finally calls XtAppCreateShell with application_name NULL, widget_class applicationShellWidgetClass , and the specified args and num_args and returns the created shell. The modified argc and argv returned by XtDisplayInitialize are returned in argc_in_out and argv_in_out. If app_context_return is not NULL, the created application context is also returned. If the display specified by the command line cannot be opened, an error message is issued and XtAppInitialize terminates the application. If fallback_resources is non-NULL, XtAppSetFallbackResources is called with the value prior to calling XtOpenDisplay .

XtAppInitialize and XtVaAppInitialize have been superseded by XtOpenApplication and XtVaOpenApplication respectively.

"SEE ALSO"
XtOpenApplication(__libmansuffix__), XtVaOpenApplication(__libmansuffix__)

\*(xT

\*(xL