char *XGetDefault(display, program, option) Display *display; char *program; char *option;
|Specifies the connection to the X server.|
|Specifies the program name for the Xlib defaults (usually argv of the main program).|
|Specifies the option name.|
If a database has been set with XrmSetDatabase(), that database is used for the lookup. Otherwise, a database is created and is set in the display (as if by calling XrmSetDatabase()). The database is created in the current locale. To create a database, XGetDefault() uses resources from the RESOURCE_MANAGER property on the root window of screen zero. If no such property exists, a resource file in the user's home directory is used. On a POSIX-conformant system, this file is "$HOME/.Xdefaults". After loading these defaults, XGetDefault() merges additional defaults specified by the XENVIRONMENT environment variable. If XENVIRONMENT is defined, it contains a full path name for the additional resource file. If XENVIRONMENT is not defined, XGetDefault() looks for "$HOME/.Xdefaults-name", where name specifies the name of the machine on which the application is running.